There should be an assumption that when a configuration can't be loaded automatically, that the name doesn't exist.
root@monster:~# monster show julian-autotest
2014-05-27 18:52:25,288 - monster - WARNING - You are not using the virtual environment! We cannot guarantee that your monster will be well-behaved. To load the virtual environment, use the command "source .venv/bin/activate"
Traceback (most recent call last):
File "/usr/local/bin/monster", line 9, in <module>
load_entry_point('monster==0.1.0', 'console_scripts', 'monster')()
File "/root/monster/monster/executable.py", line 205, in run
parser.dispatch()
File "/usr/local/lib/python2.7/dist-packages/argh/helpers.py", line 53, in dispatch
return dispatch(self, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/argh/dispatching.py", line 124, in dispatch
for line in lines:
File "/usr/local/lib/python2.7/dist-packages/argh/dispatching.py", line 200, in _execute_command
for line in result:
File "/usr/local/lib/python2.7/dist-packages/argh/dispatching.py", line 183, in _call
result = args.function(*positional, **keywords)
File "/root/monster/monster/executable.py", line 167, in show
deployment = data.load_deployment(name)
File "/root/monster/monster/data/data.py", line 15, in load_deployment
load_config(name)
File "/root/monster/monster/data/data.py", line 21, in load_config
active.config = fetch_config(name)
File "/root/monster/monster/data/data.py", line 32, in fetch_config
with open(_config_path(config), 'r') as f:
IOError: [Errno 2] No such file or directory: '/root/monster/monster/data/configs/None'
There should be an assumption that when a configuration can't be loaded automatically, that the name doesn't exist.