[node-patches] Change in ovirt-node[master]: edit-node: make a operation option mandatory for using edit-...

jboggs at redhat.com jboggs at redhat.com
Wed Jun 5 19:37:59 UTC 2013


Joey Boggs has uploaded a new change for review.

Change subject: edit-node: make a operation option mandatory for using edit-node
......................................................................

edit-node: make a operation option mandatory for using edit-node

rhbz#924528

Change-Id: I730db91f7953ce9d8ce630183fc0a68c40ed667a
Signed-off-by: Joey Boggs <jboggs at redhat.com>
---
M tools/edit-node
1 file changed, 3 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/98/15398/1

diff --git a/tools/edit-node b/tools/edit-node
index b9b1508..3297fc4 100755
--- a/tools/edit-node
+++ b/tools/edit-node
@@ -1501,6 +1501,9 @@
 def main():
     # LiveOS set to <LIVEIMG.src>
     (LiveOS, options) = parse_options(sys.argv[1:])
+    if not len(sys.argv) > 2:
+        print >> sys.stderr, "You must pick an editing option"
+        return 1
     if os.geteuid() != 0:
         print >> sys.stderr, "You must run edit-node as root"
         return 1


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I730db91f7953ce9d8ce630183fc0a68c40ed667a
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Joey Boggs <jboggs at redhat.com>



More information about the node-patches mailing list