All of lore.kernel.org
 help / color / mirror / Atom feed
* master - lvmdbustest: Remove pyudev deprecated warnings
@ 2016-09-19 20:38 tasleson
  0 siblings, 0 replies; only message in thread
From: tasleson @ 2016-09-19 20:38 UTC (permalink / raw)
  To: lvm-devel

Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=d18ea3f2cbbc53952f69ad52ca39835cebf4a847
Commit:        d18ea3f2cbbc53952f69ad52ca39835cebf4a847
Parent:        ec821d37a845f448230d114188f2a0d7623976dc
Author:        Tony Asleson <tasleson@redhat.com>
AuthorDate:    Mon Sep 19 10:33:32 2016 -0500
Committer:     Tony Asleson <tasleson@redhat.com>
CommitterDate: Mon Sep 19 15:32:47 2016 -0500

lvmdbustest: Remove pyudev deprecated warnings

---
 test/dbus/lvmdbustest.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/dbus/lvmdbustest.py b/test/dbus/lvmdbustest.py
index 9702ee8..31902c4 100755
--- a/test/dbus/lvmdbustest.py
+++ b/test/dbus/lvmdbustest.py
@@ -1015,7 +1015,7 @@ class TestDbusService(unittest.TestCase):
 
 		block_path = []
 		for d in devices:
-			block_path.append(d['DEVNAME'])
+			block_path.append(d.properties['DEVNAME'])
 
 		self.assertEqual(
 			self.handle_return(
@@ -1028,7 +1028,7 @@ class TestDbusService(unittest.TestCase):
 
 		mm = []
 		for d in devices:
-			mm.append((int(d['MAJOR']), int(d['MINOR'])))
+			mm.append((int(d.properties['MAJOR']), int(d.properties['MINOR'])))
 
 		self.assertEqual(
 



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-09-19 20:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-19 20:38 master - lvmdbustest: Remove pyudev deprecated warnings tasleson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.