Commit f8b27f40 authored by Leigh B. Stoller's avatar Leigh B. Stoller

Minor fix for when no osfeatures.

parent 6a4d682c
......@@ -1460,7 +1460,9 @@ def do_sync(args, mode="sync", must_be_active=1, as_root=False):
continue
else:
vos = OSIDS[physical[vhost]["osid"]]
if "ssh" not in vos["osfeatures"]:
if ("osfeatures" not in vos or
not vos["osfeatures"] or
"ssh" not in vos["osfeatures"]):
if VERBOSITY > VERBOSITY_HUMAN:
sys.stderr.write("warning: %s OS, %s, does "
"not support ssh, skipping\n"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment