diff options
author | John Chittum <john.chittum@gmail.com> | 2022-01-04 12:14:19 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-04 11:14:19 -0700 |
commit | 137c9b0e56bf2a9d4651aeb4ceb210d85a630923 (patch) | |
tree | 476294c8599b58f76f82be17494ee63644e1df6d /cloudinit | |
parent | d4bea4a44a0405aaf0d181d4bffff6c07d2fb5ba (diff) | |
download | vyos-cloud-init-137c9b0e56bf2a9d4651aeb4ceb210d85a630923.tar.gz vyos-cloud-init-137c9b0e56bf2a9d4651aeb4ceb210d85a630923.zip |
Update cc_ubuntu_advantage calls to assume-yes (#1158)
cloud-init currently makes calls to ubuntu_advantage without assume-yes.
some ua enable commands, such as ua enable fips, have prompts. In an
automated environment, calling ua enable without --assume-yes will
result in errors and not applying the change. This sets --assume-yes by
default for all enable commands. This capability was added two years ago
in ua commit 576e605ceb5f so should be safe for use in all systems at
this time.
LP: #1954842
Diffstat (limited to 'cloudinit')
-rw-r--r-- | cloudinit/config/cc_ubuntu_advantage.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/config/cc_ubuntu_advantage.py b/cloudinit/config/cc_ubuntu_advantage.py index 413fd3c1..9239f7de 100644 --- a/cloudinit/config/cc_ubuntu_advantage.py +++ b/cloudinit/config/cc_ubuntu_advantage.py @@ -137,7 +137,7 @@ def configure_ua(token=None, enable=None): enable_errors = [] for service in enable: try: - cmd = ["ua", "enable", service] + cmd = ["ua", "enable", "--assume-yes", service] subp.subp(cmd, capture=True) except subp.ProcessExecutionError as e: enable_errors.append((service, e)) |