diff options
author | Alberto Contreras <alberto.contreras@canonical.com> | 2022-11-15 18:23:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-15 10:23:34 -0700 |
commit | fe115f971e56d1386d13989de99cc8d2e7742aed (patch) | |
tree | cfa01c52db528e373e6f220cb965242077f93f3e /cloudinit/config | |
parent | 7b04985553ed8b0bc29574608e261ee42280f4d0 (diff) | |
download | cloud-init-git-fe115f971e56d1386d13989de99cc8d2e7742aed.tar.gz |
test: fix pro integration test
Ensure Pro instances are detached before the test run and
that the test only runs on LTS releases.
As ua.UserFacingError is not properly converted to str,
manually pick its msg to provide the user a more informative
logging msg.
Diffstat (limited to 'cloudinit/config')
-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 121a5907..9dd8f3a2 100644 --- a/cloudinit/config/cc_ubuntu_advantage.py +++ b/cloudinit/config/cc_ubuntu_advantage.py @@ -450,7 +450,7 @@ def _auto_attach(ua_section: dict): " ubuntu_advantage: enable and enable_beta" ) except UserFacingError as ex: - msg = f"Error during `full_auto_attach`: {ex}" + msg = f"Error during `full_auto_attach`: {ex.msg}" LOG.error(msg) raise RuntimeError(msg) from ex |