From 8e67ca17381ac31224f83533d01075c4c01dc219 Mon Sep 17 00:00:00 2001 From: Jussi Kukkonen Date: Wed, 6 Nov 2013 11:48:00 +0200 Subject: [test] Survive a missing ServiceResetToken in dsc Signed-off-by: Jussi Kukkonen --- test/dbus/download_sync_controller.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/dbus/download_sync_controller.py b/test/dbus/download_sync_controller.py index 521cab4..c9438ee 100644 --- a/test/dbus/download_sync_controller.py +++ b/test/dbus/download_sync_controller.py @@ -311,10 +311,10 @@ class DscController(object): for item in servers: device = Device(item) uuid = device.get_prop('UDN') - new_srt = device.get_prop('ServiceResetToken') - new_id = device.get_prop('SystemUpdateID') if self.__config.has_section(uuid): + new_id = device.get_prop('SystemUpdateID') + new_srt = device.get_prop('ServiceResetToken') cur_id = self.__config.getint(uuid, DscController.SUID_OPTION) cur_srt = self.__config.get(uuid, DscController.SRT_OPTION) if cur_id == -1 or cur_srt != new_srt: -- cgit v1.2.1