summaryrefslogtreecommitdiff
path: root/cloudinit/config/cc_vyos.py
diff options
context:
space:
mode:
authorKim <kim.sidney@gmail.com>2018-10-22 17:08:14 +0200
committerGitHub <noreply@github.com>2018-10-22 17:08:14 +0200
commit28f66957d027264260e7b82616ffc9e7b67616e7 (patch)
tree6b4e90cbd38d4d8f92859f3a45f73f951bae23a0 /cloudinit/config/cc_vyos.py
parentdab1aa69b8e99d841ba90c42c30796e68242bbe2 (diff)
downloadvyos-cloud-init-28f66957d027264260e7b82616ffc9e7b67616e7.tar.gz
vyos-cloud-init-28f66957d027264260e7b82616ffc9e7b67616e7.zip
set user tag
Diffstat (limited to 'cloudinit/config/cc_vyos.py')
-rw-r--r--cloudinit/config/cc_vyos.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/cloudinit/config/cc_vyos.py b/cloudinit/config/cc_vyos.py
index 1ea9fadb..b073239c 100644
--- a/cloudinit/config/cc_vyos.py
+++ b/cloudinit/config/cc_vyos.py
@@ -44,6 +44,7 @@ def set_pass_login(config, user, password, encrypted_pass):
else:
config.set(['system', 'login', 'user', user, 'authentication', 'plaintext-password'], value=password, replace=True)
+ config.set_tag(['system', 'login', 'user'])
config.set(['system', 'login', 'user', user, 'level'], value='admin', replace=True)