[et-mgmt-tools] [PATCH] The return value of the argument error of option is wrong in virt-install.

S.Sakamoto fj0588di at aa.jp.fujitsu.com
Fri Feb 1 09:01:07 UTC 2008


Hi,

When I set a wrong value in option of virt-install,(ex. --cpuset=aaa, --mac=aaa)
Error message appears and a command is finished,
but the return value is 0.

So, I make the patch which improved this problem so that a user is not confused.


Thanks,
Shigeki Sakamoto

==========================================================
diff -r 9eccd3abccb6 virt-install
--- a/virt-install	Wed Jan 30 16:23:50 2008 -0500
+++ b/virt-install	Thu Jan 31 16:07:44 2008 +0900
@@ -519,4 +519,5 @@ if __name__ == "__main__":
         sys.exit(e.code)
     except Exception, e:
         logging.exception(e)
-
+        sys.exit(1)
+




More information about the et-mgmt-tools mailing list