diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2009-06-28 09:18:15 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-06-28 09:18:15 +0200 |
commit | 37eb08572b0384fce26dd6a1467bde727059a084 (patch) | |
tree | 2eeef2ca1b142b07feabbd7b0e038f17535c372f /test | |
parent | a209ba12c097215fa14bf9f561f486474b586e4b (diff) | |
download | connman-37eb08572b0384fce26dd6a1467bde727059a084.tar.gz connman-37eb08572b0384fce26dd6a1467bde727059a084.tar.bz2 connman-37eb08572b0384fce26dd6a1467bde727059a084.zip |
Handle missing Name property when setting passphrase
Diffstat (limited to 'test')
-rwxr-xr-x | test/set-passphrase | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/set-passphrase b/test/set-passphrase index f80d7545..a1044162 100755 --- a/test/set-passphrase +++ b/test/set-passphrase @@ -29,6 +29,9 @@ for path in properties["Devices"]: properties = network.GetProperties() - if (properties["Name"] == sys.argv[1]): + if "Name" not in properties: + continue + + if properties["Name"] == sys.argv[1]: print "Setting passphrase for %s" % (path) network.SetProperty("WiFi.Passphrase", sys.argv[2]) |