[master 2/3] Deprecate some little-used devicetree lookup methods.
dwlehman
installerbot-noreply at redhat.com
Thu Jun 25 21:56:09 UTC 2015
From: David Lehman <dlehman at redhat.com>
---
blivet/devicetree.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/blivet/devicetree.py b/blivet/devicetree.py
index 3349569..f8cd3ff 100644
--- a/blivet/devicetree.py
+++ b/blivet/devicetree.py
@@ -687,6 +687,7 @@ def getDeviceByUuid(self, uuid, incomplete=False, hidden=False):
log_method_return(self, result)
return result
+ @util.deprecated('1.7', '')
def getDevicesBySerial(self, serial, incomplete=False, hidden=False):
""" Return a list of devices with a matching serial.
@@ -771,6 +772,7 @@ def getDeviceByPath(self, path, incomplete=False, hidden=False):
log_method_return(self, result)
return result
+ @util.deprecated('1.7', '')
def getDevicesByType(self, device_type, incomplete=False, hidden=False):
""" Return a list of devices with a matching device type.
@@ -786,6 +788,7 @@ def getDevicesByType(self, device_type, incomplete=False, hidden=False):
log_method_return(self, [r.name for r in result])
return result
+ @util.deprecated('1.7', '')
def getDevicesByInstance(self, device_class, incomplete=False, hidden=False):
""" Return a list of devices with a matching device class.
--
To view this commit on github, visit https://github.com/rhinstaller/blivet/commit/ed736abfe83b41ccb7834e234cae41311bef3eab
More information about the anaconda-patches
mailing list