diff options
author | Dan Winship <danw@gnome.org> | 2014-09-10 09:30:09 -0400 |
---|---|---|
committer | Dan Winship <danw@gnome.org> | 2014-09-18 11:51:07 -0400 |
commit | bc003f627340fd94bfe605a830fa09d010b0a1af (patch) | |
tree | 58f921d111216e01c7ce09bbb7695d8a491f4ed3 | |
parent | 5f5a89b98ada1e23b6357aedaa6baef25afb1e0a (diff) | |
download | NetworkManager-bc003f627340fd94bfe605a830fa09d010b0a1af.tar.gz |
tools: fix test-networkmanager-service Settings.Connections
The test settings service wasn't exporting a Connections property.
-rwxr-xr-x | tools/test-networkmanager-service.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/test-networkmanager-service.py b/tools/test-networkmanager-service.py index 7716dca9ac..defc320937 100755 --- a/tools/test-networkmanager-service.py +++ b/tools/test-networkmanager-service.py @@ -843,6 +843,7 @@ class Settings(dbus.service.Object): self.props = {} self.props['Hostname'] = "foobar.baz" self.props['CanModify'] = True + self.props['Connections'] = dbus.Array([], 'o') def auto_remove_next_connection(self): self.remove_next_connection = True; @@ -859,8 +860,9 @@ class Settings(dbus.service.Object): path = "/org/freedesktop/NetworkManager/Settings/Connection/{0}".format(self.counter) self.counter = self.counter + 1 self.connections[path] = Connection(self.bus, path, settings, self.delete_connection) + self.props['Connections'] = dbus.Array(self.connections.keys(), 'o') self.NewConnection(path) - self.PropertiesChanged({ 'connections': dbus.Array(self.connections.keys(), 'o') }) + self.PropertiesChanged({ 'connections': self.props['Connections'] }) if self.remove_next_connection: self.remove_next_connection = False @@ -870,7 +872,8 @@ class Settings(dbus.service.Object): def delete_connection(self, connection): del self.connections[connection.path] - self.PropertiesChanged({ 'connections': dbus.Array(self.connections.keys(), 'o') }) + self.props['Connections'] = dbus.Array(self.connections.keys(), 'o') + self.PropertiesChanged({ 'connections': self.props['Connections'] }) @dbus.service.method(dbus_interface=dbus.PROPERTIES_IFACE, in_signature='s', out_signature='a{sv}') def GetAll(self, iface): |