[master 3/3] Deprecate some little-used devicetree lookup methods.
dwlehman
installerbot-noreply at redhat.com
Mon Jun 29 18:21:42 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 6392b65..ecfaa14 100644
--- a/blivet/devicetree.py
+++ b/blivet/devicetree.py
@@ -688,6 +688,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.
@@ -772,6 +773,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.
@@ -787,6 +789,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/907c737bcf7a7d0522e1796eaa9c64409ac29380
More information about the anaconda-patches
mailing list