mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
[XM][ACM] Add try,catch back to main() for dry-run
Signed-off-by: Alastair Tse <atse@xensource.com> Signed-off-by: Bryan D. Payne <bryan@thepaynes.cc>
This commit is contained in:
1 parent
3b61bd783a
commit
3918261f47
1 file changed
+4
-3
@@ -32,8 +32,9 @@ def help():
|
||||
individually along with the final security decision."""
|
||||
|
||||
def main (argv):
|
||||
if len(argv) != 2:
|
||||
raise OptionError('Invalid number of arguments')
|
||||
try:
|
||||
if len(argv) != 2:
|
||||
raise OptionError('Invalid number of arguments')
|
||||
|
||||
passed = 0
|
||||
(opts, config) = create.parseCommandLine(argv)
|
||||
@@ -42,7 +43,7 @@ def main (argv):
|
||||
passed = 1
|
||||
else:
|
||||
print "Checking resources: (skipped)"
|
||||
|
||||
|
||||
if passed:
|
||||
print "Dry Run: PASSED"
|
||||
else:
|
||||
|
||||