Permalink
Browse files

Fix error message

  • Loading branch information...
1 parent 09d457e commit f7c149d21b503cf231547e272aa0b4e627355f59 @thatch45 thatch45 committed Jul 13, 2012
Showing with 6 additions and 4 deletions.
  1. +6 −4 saltcloud/clouds/EC2.py
View
@@ -161,10 +161,12 @@ def create(vm_):
data = conn.deploy_node(**kwargs)
except Exception as exc:
err = ('The following exception was thrown by libcloud when trying to '
- 'run the initial deployment: {0}, the vm {1} has been created '
- 'but Salt could not be intsalled. Please verify that your ssh '
- 'keys are in order and that the security group is accepting '
- 'inbound connections from port 22.\n').format(exc, vm_['name'])
+ 'run the initial deployment: \n{0}\n\nThe vm {1} has been '
+ 'created but Salt could not be intsalled. Please verify that '
+ 'your ssh keys are in order and that the security group is '
+ 'accepting inbound connections from port 22.\n').format(
+ exc, vm_['name']
+ )
sys.stderr.write(err)
return False
cmd = ('ssh -oStrictHostKeyChecking=no -t -i {0} {1}@{2} "sudo '

0 comments on commit f7c149d

Please sign in to comment.