Permalink
Browse files

Username and keypair file should be valid credentials.

  • Loading branch information...
michaelballantyne committed Jan 29, 2013
1 parent d17741f commit 59302bd83dd4b247cca91e2ad252fe60387f8a26
Showing with 2 additions and 2 deletions.
  1. +2 −2 littlechef/runner.py
View
@@ -413,8 +413,8 @@ def _readconfig():
except ConfigParser.NoOptionError:
pass
- if user_specified and not env.password and not env.ssh_config:
- abort('You need to define a password or a ssh-config file in config.cfg')
+ if user_specified and not env.password and not env.key_filename and not env.ssh_config:
+ abort('You need to define a password, keypair file, or ssh-config file in config.cfg')
# Node's Chef Solo working directory for storing cookbooks, roles, etc.
try:

0 comments on commit 59302bd

Please sign in to comment.