saltstack/salt-bootstrap — pull request #401 by nmadhok (2014-06-11 02:51:25+00:00)
Title: Changing errors to warning and removing return statements. Why return?

There's no need to return. Instead just display a warning message to users and continue execution. This solves the problem where the instance creation using cloud module fails giving the following error:
```
test-master:
----------
ID: test.minion
Function: cloud.present
Result: False
Comment: An exception occurred in this state: Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/salt/state.py", line 1492, in call
**cdata['kwargs'])
File "/usr/lib/python2.6/site-packages/salt/states/cloud.py", line 106, in present
info = __salt__['cloud.create'](cloud_provider, name, **kwargs)
File "/usr/lib/python2.6/site-packages/salt/modules/cloud.py", line 202, in create
info = client.create(provider, names, **kwargs)
File "/usr/lib/python2.6/site-packages/salt/cloud/__init__.py", line 362, in create
mapper.create(vm_))
File "/usr/lib/python2.6/site-packages/salt/cloud/__init__.py", line 1162, in create
output = self.clouds[func](vm_)
File "/usr/lib/python2.6/site-packages/salt/cloud/clouds/openstack.py", line 773, in create
ret = salt.utils.cloud.bootstrap(vm_, __opts__)
File "/usr/lib/python2.6/site-packages/salt/utils/cloud.py", line 418, in bootstrap
deployed = deploy_script(**deploy_kwargs)
File "/usr/lib/python2.6/site-packages/salt/utils/cloud.py", line 1204, in deploy_script
deploy_command
SaltCloudSystemExit: Executing the command '/tmp/.saltcloud/deploy.sh -c /tmp/.saltcloud' failed
Started: 14:41:56.077120
Duration: 867 ms
Changes:

Summary
------------
Succeeded: 0
Failed: 1
------------
Total states run: 1
```