projects
/
framework
/
connectivity
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
08a8b7f
)
Fix handling of missing name property
author
Marcel Holtmann
<marcel@holtmann.org>
Thu, 26 Mar 2009 08:59:15 +0000
(
01:59
-0700)
committer
Marcel Holtmann
<marcel@holtmann.org>
Thu, 26 Mar 2009 08:59:15 +0000
(
01:59
-0700)
test/disconnect-network
patch
|
blob
|
history
diff --git
a/test/disconnect-network
b/test/disconnect-network
index
8529c19
..
3bb235a
100755
(executable)
--- a/
test/disconnect-network
+++ b/
test/disconnect-network
@@
-22,7
+22,7
@@
for path in properties["Devices"]:
if properties["Type"] not in ["wifi", "wimax",
"bluetooth", "cellular"]:
- continue
;
+ continue
for path in properties["Networks"]:
network = dbus.Interface(bus.get_object("org.moblin.connman", path),
@@
-32,6
+32,9
@@
for path in properties["Devices"]:
dev = path[path.rfind("/") + 1:]
+ if "Name" not in properties.keys():
+ continue
+
if dev == sys.argv[1] or properties["Name"] == sys.argv[1]:
print "Disconnecting %s" % (path)
network.Disconnect()