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>
This commit is contained in:
Thomas Haller
2013-08-06 11:42:18 +02:00
committed by Dan Williams
parent a853b3bd23
commit 471fed3859
3 changed files with 7 additions and 7 deletions

View File

@@ -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 ""

0
examples/python/nm-state.py Normal file → Executable file
View File

View File

@@ -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