diff options
author | Scott Moser <smoser@ubuntu.com> | 2012-01-17 12:34:19 -0500 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2012-01-17 12:34:19 -0500 |
commit | c33eedb47b2b22c797051da197fd80e74f1db179 (patch) | |
tree | f1958cfc36e53fc406fea4963b1305f760570847 /cloudinit/CloudConfig/cc_ssh.py | |
parent | 89eafa0a6c1a28331b3b3c59ba94803052c63583 (diff) | |
download | vyos-cloud-init-c33eedb47b2b22c797051da197fd80e74f1db179.tar.gz vyos-cloud-init-c33eedb47b2b22c797051da197fd80e74f1db179.zip |
[PATCH 2/4] Fix pylint conventions C0322 (operator not preceded by a space)
From: Juerg Haefliger <juerg.haefliger@hp.com>
Diffstat (limited to 'cloudinit/CloudConfig/cc_ssh.py')
-rw-r--r-- | cloudinit/CloudConfig/cc_ssh.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cloudinit/CloudConfig/cc_ssh.py b/cloudinit/CloudConfig/cc_ssh.py index 897ba9dc..6031a436 100644 --- a/cloudinit/CloudConfig/cc_ssh.py +++ b/cloudinit/CloudConfig/cc_ssh.py @@ -21,7 +21,7 @@ import os import glob import subprocess -DISABLE_ROOT_OPTS="no-port-forwarding,no-agent-forwarding,no-X11-forwarding,command=\"echo \'Please login as the user \\\"$USER\\\" rather than the user \\\"root\\\".\';echo;sleep 10\"" +DISABLE_ROOT_OPTS = "no-port-forwarding,no-agent-forwarding,no-X11-forwarding,command=\"echo \'Please login as the user \\\"$USER\\\" rather than the user \\\"root\\\".\';echo;sleep 10\"" global_log = None @@ -60,7 +60,7 @@ def handle(_name,cfg,cloud,log,_args): for priv,pub in priv2pub.iteritems(): if pub in cfg['ssh_keys'] or not priv in cfg['ssh_keys']: continue - pair=(key2file[priv][0], key2file[pub][0]) + pair = (key2file[priv][0], key2file[pub][0]) subprocess.call(('sh', '-xc', cmd % pair)) log.debug("generated %s from %s" % pair) else: |