]> www.infradead.org Git - users/dhowells/kafs-utils.git/commitdiff
Fix "vos listaddrs" with -host
authorDavid Howells <dhowells@redhat.com>
Wed, 9 Apr 2014 23:05:16 +0000 (00:05 +0100)
committerDavid Howells <dhowells@redhat.com>
Wed, 9 Apr 2014 23:05:16 +0000 (00:05 +0100)
Fix "vos listaddrs" with -host to expect a host name or ip address rather than
a UUID.

Signed-off-by: David Howells <dhowells@redhat.com>
suite/commands/vos/listaddrs.py

index 1c3f05f9928ce45091fd83233863750065ff7ce8..c450f5b95f57cf8070e9ef4118d6fbd16d1ca960 100644 (file)
@@ -98,6 +98,6 @@ def main(params):
         attributes.uuid = params["uuid"]
     if "host" in params:
         attributes.Mask |= kafs.VLADDR_IPADDR
-        attributes.uuid = params["uuid"]
+        attributes.ipaddr = addrcache.name2addr_int(params["host"][0])
 
     list_one(params, vl_conn, attributes)