mbruzek: +1
johnsca: PR updated to fix test.
diff --git a/conjureup/controllers/newcloud/gui.py b/conjureup/controllers/newcloud/gui.py
index c143f03..7a8c603 100644
--- a/conjureup/controllers/newcloud/gui.py
+++ b/conjureup/controllers/newcloud/gui.py
@@ -177,21 +177,12 @@ class NewCloudController:
         # information.
 
         cloud_type = juju.get_cloud_types_by_name()[app.current_cloud]
-        try:
-            if cloud_type == 'lxd':
-                lxd = common.is_lxd_ready()
-                if not lxd['ready']:
-                    return controllers.use('lxdsetup').render(lxd['msg'])
-                self.__do_bootstrap()
-                return
-        except LookupError as e:
-            # TODO: Add vsphere once lp bug 1671650 is resolved
-            if cloud_type in ['maas']:
-                app.log.debug(
-                    "Not a cloud, using provider type: {}".format(
-                        app.current_cloud))
-            else:
-                raise Exception(e)
+        if cloud_type == 'localhost':
+            lxd = common.is_lxd_ready()
+            if not lxd['ready']:
+                return controllers.use('lxdsetup').render(lxd['msg'])
+            self.__do_bootstrap()
+            return
 
         # XXX: always prompt for maas information for now as there is no way to
         # logically store the maas server ip for future sessions.
diff --git a/conjureup/controllers/newcloud/tui.py b/conjureup/controllers/newcloud/tui.py
index dce8e7d..a4c4a99 100644
--- a/conjureup/controllers/newcloud/tui.py
+++ b/conjureup/controllers/newcloud/tui.py
@@ -43,8 +43,8 @@ class NewCloudController:
         return controllers.use('deploy').render()
 
     def render(self):
-        cloud = juju.get_cloud(app.current_cloud)
-        if cloud['type'] != 'lxd':
+        cloud_type = juju.get_cloud_types_by_name()[app.current_cloud]
+        if cloud_type != 'localhost':
             if not common.try_get_creds(app.current_cloud):
                 utils.warning("You attempted to do an install against a cloud "
                               "that requires credentials that could not be "
@@ -54,7 +54,7 @@ class NewCloudController:
                               "{}`.".format(app.current_cloud))
                 sys.exit(1)
 
-        if cloud['type'] == 'lxd':
+        if cloud_type == 'localhost':
             lxd = common.is_lxd_ready()
             if not lxd['ready']:
                 return controllers.use('lxdsetup').render(lxd['msg'])

conjure-up error: Unable to find credentials for cloud looking for local-host
Please outline the hardware you're running conjure-up on, including number of cpus, amount of memory, amount of storage space available: i7 4-core CPU, 16MB of RAM, ~450GB free disk space.



What spell was selected?: kubernetes-core



What cloud provider was selected (this includes both MAAS and localhost)?: localhost




Please outline what commands were run to install and execute conjure-up: snap refresh --channel edge conjure-up




Please post **~/.cache/conjure-up/conjure-up.log**: 

[conjure-up.log.zip](https://github.com/conjure-up/conjure-up/files/906201/conjure-up.log.zip)

Error occurred on 2017-04-07 I see no errors in the log for this day.w





Provide the output of the following commands:

```
mbruzek@pandora:~$ which -a juju
/snap/bin/juju
mbruzek@pandora:~$ which -a conjure-up
/snap/bin/conjure-up
mbruzek@pandora:~$ which -a lxd
/usr/bin/lxd
mbruzek@pandora:~$ juju version
2.2-beta3-yakkety-amd64
mbruzek@pandora:~$ conjure-up --version
conjure-up 2.2-beta3
mbruzek@pandora:~$ lxd --version
2.12
mbruzek@pandora:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.10
DISTRIB_CODENAME=yakkety
DISTRIB_DESCRIPTION="Ubuntu 16.10"
```


Summary of problem:
I tried to conjure-up kubernetes core from the edge channel and got an error about credentials.
![conjure-up-2 1 2-beta3_error](https://cloud.githubusercontent.com/assets/6385185/24810517/1662beaa-1b88-11e7-90bd-d7aaa9b865e7.png)

diff --git a/test/test_controllers_newcloud_gui.py b/test/test_controllers_newcloud_gui.py
index 33491aa..322004c 100644
--- a/test/test_controllers_newcloud_gui.py
+++ b/test/test_controllers_newcloud_gui.py
@@ -47,7 +47,7 @@ class NewCloudGUIRenderTestCase(unittest.TestCase):
         self.mock_common = self.common_patcher.start()
         self.mock_juju = self.juju_patcher.start()
         self.mock_juju.get_cloud_types_by_name.return_value = {'localhost':
-                                                               'lxd'}
+                                                               'localhost'}
         self.track_screen_patcher = patch(
             'conjureup.controllers.newcloud.gui.track_screen')
         self.mock_track_screen = self.track_screen_patcher.start()

pip install -e .
parse_log_pytest
requirements.txt
nose tox pytest
apt-get update apt-get install -y gcc
3.5
requirements.txt
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
attrs==22.2.0
backcall==0.2.0
certifi==2021.5.30
charset-normalizer==2.0.12
-e git+https://github.com/conjure-up/conjure-up.git@f0d89c58e62dee3e64420a5b7a321b92e8f92e4f#egg=conjure_up
decorator==5.1.1
distlib==0.3.9
filelock==3.4.1
idna==3.10
importlib-metadata==4.8.3
importlib-resources==5.4.0
iniconfig==1.1.1
ipython==7.16.3
ipython-genutils==0.2.0
jedi==0.17.2
Jinja2==3.0.3
juju-wait==2.8.4
MarkupSafe==2.0.1
nose==1.3.7
oauthlib==3.2.2
packaging==21.3
parso==0.7.1
pexpect==4.9.0
pickleshare==0.7.5
platformdirs==2.4.0
pluggy==1.0.0
prettytable==2.5.0
progressbar2==3.55.0
prompt-toolkit==3.0.36
ptyprocess==0.7.0
py==1.11.0
Pygments==2.14.0
pyparsing==3.1.4
pytest==7.0.1
python-utils==3.5.2
PyYAML==6.0.1
requests==2.27.1
requests-oauthlib==2.0.0
six==1.17.0
termcolor==1.1.0
toml==0.10.2
tomli==1.2.3
tox==3.28.0
traitlets==4.3.3
typing_extensions==4.1.1
urllib3==1.26.20
urwid==2.1.2
virtualenv==20.17.1
wcwidth==0.2.13
ws4py==0.3.4
zipp==3.6.0

name: conjure-up
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - certifi=2021.5.30=py36h06a4308_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.3=he6710b0_2
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=1.1.1w=h7f8727e_0
  - pip=21.2.2=py36h06a4308_0
  - python=3.6.13=h12debd9_1
  - readline=8.2=h5eee18b_0
  - setuptools=58.0.4=py36h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - wheel=0.37.1=pyhd3eb1b0_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - attrs==22.2.0
      - backcall==0.2.0
      - charset-normalizer==2.0.12
      - decorator==5.1.1
      - distlib==0.3.9
      - filelock==3.4.1
      - idna==3.10
      - importlib-metadata==4.8.3
      - importlib-resources==5.4.0
      - iniconfig==1.1.1
      - ipython==7.16.3
      - ipython-genutils==0.2.0
      - jedi==0.17.2
      - jinja2==3.0.3
      - juju-wait==2.8.4
      - markupsafe==2.0.1
      - nose==1.3.7
      - oauthlib==3.2.2
      - packaging==21.3
      - parso==0.7.1
      - pexpect==4.9.0
      - pickleshare==0.7.5
      - platformdirs==2.4.0
      - pluggy==1.0.0
      - prettytable==2.5.0
      - progressbar2==3.55.0
      - prompt-toolkit==3.0.36
      - ptyprocess==0.7.0
      - py==1.11.0
      - pygments==2.14.0
      - pyparsing==3.1.4
      - pytest==7.0.1
      - python-utils==3.5.2
      - pyyaml==6.0.1
      - requests==2.27.1
      - requests-oauthlib==2.0.0
      - six==1.17.0
      - termcolor==1.1.0
      - toml==0.10.2
      - tomli==1.2.3
      - tox==3.28.0
      - traitlets==4.3.3
      - typing-extensions==4.1.1
      - urllib3==1.26.20
      - urwid==2.1.2
      - virtualenv==20.17.1
      - wcwidth==0.2.13
      - ws4py==0.3.4
      - zipp==3.6.0
prefix: /opt/conda/envs/conjure-up

test/test_controllers_newcloud_gui.py::NewCloudGUIRenderTestCase::test_render
test/test_controllers_newcloud_gui.py::NewCloudGUIRenderTestCase::test_lxd_version_to_low test/test_controllers_newcloud_gui.py::NewCloudGUIFinishTestCase::test_finish
conjureup/controllers/newcloud/gui.py conjureup/controllers/newcloud/tui.py
conjureup/controllers/newcloud/gui.py conjureup/controllers/newcloud/tui.py