Fix crash on missing host_key
Change-Id: If5dfbfd1a931d35755eeb2a1781fad46c56a173b Closes-Bug: #1289610
This commit is contained in:
parent
eb115508a2
commit
e9a58e5e93
|
@ -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 = [
|
||||
|
|
Loading…
Reference in New Issue