fence-agents: master - fence_xenapy: Fix invalid use of options

Marek GrĂ¡c marx at fedoraproject.org
Mon Oct 21 10:52:57 UTC 2013


Gitweb:        http://git.fedorahosted.org/git/?p=fence-agents.git;a=commitdiff;h=bef51987fa30fe17458dfcc5d817bc232377f349
Commit:        bef51987fa30fe17458dfcc5d817bc232377f349
Parent:        110274aa54e8673a47653da7c9fecb2bd95bd517
Author:        Marek 'marx' Grac <mgrac at redhat.com>
AuthorDate:    Mon Oct 21 12:48:48 2013 +0200
Committer:     Marek 'marx' Grac <mgrac at redhat.com>
CommitterDate: Mon Oct 21 12:48:48 2013 +0200

fence_xenapy: Fix invalid use of options

Fixing typos (--passwd -> --password; --uid --> --uuid)
---
 fence/agents/xenapi/fence_xenapi.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/fence/agents/xenapi/fence_xenapi.py b/fence/agents/xenapi/fence_xenapi.py
index 064624a..9cf200a 100644
--- a/fence/agents/xenapi/fence_xenapi.py
+++ b/fence/agents/xenapi/fence_xenapi.py
@@ -131,7 +131,7 @@ def get_outlet_list(session, options):
 def connect_and_login(options):
 	url = options["--session-url"]
 	username = options["--username"]
-	password = options["--passwd"]
+	password = options["--password"]
 
 	try:
 		# Create the XML RPC session to the specified URL.
@@ -158,8 +158,8 @@ def return_vm_reference(session, options):
 		verbose = False
 
 	# Case where the UUID has been specified
-	if options.has_key("--uid"):
-		uuid = options["--uid"].lower()
+	if options.has_key("--uuid"):
+		uuid = options["--uuid"].lower()
 		# When using the -n parameter for name, we get an error message (in verbose
 		# mode) that tells us that we didn't find a VM. To immitate that here we
 		# need to catch and re-raise the exception produced by get_by_uuid.


More information about the cluster-commits mailing list