[node-patches] Change in ovirt-node[master]: make sure --skip-existing-hooks option could work in ovirt-n...

hadong0720 at gmail.com hadong0720 at gmail.com
Tue Jun 10 07:27:51 UTC 2014


hadong has uploaded a new change for review.

Change subject: make sure --skip-existing-hooks option could work in ovirt-node-upgrade
......................................................................

make sure --skip-existing-hooks option could work in ovirt-node-upgrade

Primary the value of _options.skip_existing_hooks always "False" whether
add --skip-existing-hooks option or not when using ovirt-node-upgrade.
Now fix it as the value of _options.skip_existing_hooks was "True" when
add --skip-existing-hooks option. If not add it, the default value was
"False"

Change-Id: Ia71b8478ca191f41f99192a6e8f3083ba5deef9c
Signed-off-by: hadong <hadong at redhat.com>
---
M scripts/ovirt-node-upgrade.py
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/42/28542/1

diff --git a/scripts/ovirt-node-upgrade.py b/scripts/ovirt-node-upgrade.py
index 58d6791..bc354f1 100755
--- a/scripts/ovirt-node-upgrade.py
+++ b/scripts/ovirt-node-upgrade.py
@@ -150,7 +150,7 @@
         parser.add_option("--reboot", type="int", default="0", dest="reboot",
                           help="Perform reboot after upgrade, argument is"
                           " amount of delay in seconds")
-        parser.add_option("--skip-existing-hooks", action="store_false",
+        parser.add_option("--skip-existing-hooks", action="store_true",
                           dest="skip_existing_hooks", default=False,
                           help="Use only new hooks from provided iso")
 


-- 
To view, visit http://gerrit.ovirt.org/28542
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia71b8478ca191f41f99192a6e8f3083ba5deef9c
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: hadong <hadong0720 at gmail.com>



More information about the node-patches mailing list