summaryrefslogtreecommitdiff
path: root/cloudinit/CloudConfig/cc_set_passwords.py
diff options
context:
space:
mode:
Diffstat (limited to 'cloudinit/CloudConfig/cc_set_passwords.py')
-rw-r--r--cloudinit/CloudConfig/cc_set_passwords.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/CloudConfig/cc_set_passwords.py b/cloudinit/CloudConfig/cc_set_passwords.py
index f44d450c..07e3ca1b 100644
--- a/cloudinit/CloudConfig/cc_set_passwords.py
+++ b/cloudinit/CloudConfig/cc_set_passwords.py
@@ -115,7 +115,7 @@ def handle(_name,cfg,_cloud,log,args):
return
def rand_str(strlen=32, select_from=string.letters+string.digits):
- return("".join([random.choice(select_from) for x in range(0, strlen)]))
+ return("".join([random.choice(select_from) for _x in range(0, strlen)]))
def rand_user_password(pwlen=9):
selfrom=(string.letters.translate(None,'loLOI') +