summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2013-08-06 11:42:18 +0200
committerDan Williams <dcbw@redhat.com>2013-08-06 13:48:02 -0500
commit471fed385994dcca9a3b48639c27cb8bfceaf568 (patch)
treeb5af65f8b68065c092a58e66e0f1fb635ca98249
parenta853b3bd23aa4a65cc4583bd7d2a5eb219754cc0 (diff)
downloadNetworkManager-471fed385994dcca9a3b48639c27cb8bfceaf568.tar.gz
trivial: minor code cleanup in examples/python
There where cases, where TAB was mixed with SPACES. Replace TAB with SPACES. Additionally, make the script nm-state.py executable Signed-off-by: Thomas Haller <thaller@redhat.com>
-rwxr-xr-xexamples/python/list-connections.py10
-rwxr-xr-x[-rw-r--r--]examples/python/nm-state.py0
-rwxr-xr-xexamples/python/update-secrets.py4
3 files changed, 7 insertions, 7 deletions
diff --git a/examples/python/list-connections.py b/examples/python/list-connections.py
index db01f85c6d..120b744acc 100755
--- a/examples/python/list-connections.py
+++ b/examples/python/list-connections.py
@@ -94,11 +94,11 @@ def print_connections():
merge_secrets(settings_connection, config, 'ppp')
# Get the details of the 'connection' setting
- s_con = config['connection']
- print " name: %s" % s_con['id']
- print " uuid: %s" % s_con['uuid']
- print " type: %s" % s_con['type']
- print " ------------------------------------------"
+ s_con = config['connection']
+ print " name: %s" % s_con['id']
+ print " uuid: %s" % s_con['uuid']
+ print " type: %s" % s_con['type']
+ print " ------------------------------------------"
connection_to_string(config)
print ""
diff --git a/examples/python/nm-state.py b/examples/python/nm-state.py
index 94fa630999..94fa630999 100644..100755
--- a/examples/python/nm-state.py
+++ b/examples/python/nm-state.py
diff --git a/examples/python/update-secrets.py b/examples/python/update-secrets.py
index ae973fc37b..13cac1b08c 100755
--- a/examples/python/update-secrets.py
+++ b/examples/python/update-secrets.py
@@ -46,7 +46,7 @@ def change_secrets_in_one_setting(proxy, config, setting_name):
config[setting_name][key] = new_secret
except Exception, e:
#code = str(e).split(':')[0]
- #print "Exception:", str(e)
+ #print "Exception:", str(e)
pass
def change_secrets(con_path, config):
@@ -80,7 +80,7 @@ def find_connection(name):
pass
# Find connection by the id
- s_con = config['connection']
+ s_con = config['connection']
if name == s_con['id']:
con_path = path
return config