Fix crash on missing host_key

Change-Id: If5dfbfd1a931d35755eeb2a1781fad46c56a173b
Closes-Bug: #1289610
This commit is contained in:
Caleb Groom 2014-03-07 16:52:20 -06:00
parent eb115508a2
commit e9a58e5e93
1 changed files with 2 additions and 0 deletions

View File

@ -108,6 +108,8 @@ def main():
if args.host_key_path:
args.host_key = args.host_key_path.read()
else:
args.host_key = None
# argparse lacks a method to say "if this option is set, require these too"
required_to_access_cloud = [