Revision 98615068
b/kamaki/cli.py | ||
---|---|---|
237 | 237 |
path = p[0] |
238 | 238 |
|
239 | 239 |
if not path: |
240 |
log.error("Invalid personality argument '%s'", p)
|
|
240 |
print "Invalid personality argument '%s'" % p
|
|
241 | 241 |
return 1 |
242 | 242 |
if not exists(path): |
243 |
log.error("File %s does not exist", path)
|
|
243 |
print "File %s does not exist" % path
|
|
244 | 244 |
return 1 |
245 | 245 |
|
246 | 246 |
with open(path) as f: |
... | ... | |
614 | 614 |
for property in self.options.properties or []: |
615 | 615 |
key, sep, val = property.partition('=') |
616 | 616 |
if not sep: |
617 |
log.error("Invalid property '%s'", property)
|
|
617 |
print "Invalid property '%s'" % property
|
|
618 | 618 |
return 1 |
619 | 619 |
properties[key.strip()] = val.strip() |
620 | 620 |
|
... | ... | |
880 | 880 |
for option in args.grouped.get('-o', []): |
881 | 881 |
keypath, sep, val = option.partition('=') |
882 | 882 |
if not sep: |
883 |
log.error("Invalid option '%s'", option)
|
|
883 |
print "Invalid option '%s'" % option
|
|
884 | 884 |
exit(1) |
885 | 885 |
section, sep, key = keypath.partition('.') |
886 | 886 |
if not sep: |
887 |
log.error("Invalid option '%s'", option)
|
|
887 |
print "Invalid option '%s'" % option
|
|
888 | 888 |
exit(1) |
889 | 889 |
config.override(section.strip(), key.strip(), val.strip()) |
890 | 890 |
|
Also available in: Unified diff