diff options
author | Tony Asleson <tasleson@redhat.com> | 2016-06-10 12:03:04 -0500 |
---|---|---|
committer | Tony Asleson <tasleson@redhat.com> | 2016-06-10 15:28:42 -0500 |
commit | b717e8fe1d926d6dd6e5a03354706351d90477d2 (patch) | |
tree | 1677fb07a12405fb5981aa77efcea4fc693ad6fc /daemons/lvmdbusd/manager.py | |
parent | 41ebed707700e926d4224bc62289ea47014d9a0d (diff) | |
download | lvm2-b717e8fe1d926d6dd6e5a03354706351d90477d2.tar.gz |
lvmdbusd: Rename get_object_path_by_lvm_id
Renaming to get_object_path_by_uuid_lvm_id, to clarify that both the uuid
and the lvm id are required.
Diffstat (limited to 'daemons/lvmdbusd/manager.py')
-rw-r--r-- | daemons/lvmdbusd/manager.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/daemons/lvmdbusd/manager.py b/daemons/lvmdbusd/manager.py index c72843943..2388d8a3e 100644 --- a/daemons/lvmdbusd/manager.py +++ b/daemons/lvmdbusd/manager.py @@ -36,7 +36,7 @@ class Manager(AutomatedProperties): # Check to see if we are already trying to create a PV for an existing # PV - pv = cfg.om.get_object_path_by_lvm_id( + pv = cfg.om.get_object_path_by_uuid_lvm_id( device, device, None, False) if pv: raise dbus.exceptions.DBusException( @@ -159,7 +159,7 @@ class Manager(AutomatedProperties): :param key: The lookup value :return: Return the object path. If object not found you will get '/' """ - p = cfg.om.get_object_path_by_lvm_id( + p = cfg.om.get_object_path_by_uuid_lvm_id( key, key, gen_new=False) if p: return p |