diff options
author | Daniel Watkins <oddbloke@ubuntu.com> | 2020-11-19 12:42:49 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-19 12:42:49 -0500 |
commit | bfaee8cc9b8fd23dbc118ae548fc2ca695a0d707 (patch) | |
tree | 790b49ace9893745f8d5850f3f7aa73de04dce02 /tests/integration_tests/clouds.py | |
parent | eea754492f074e00b601cf77aa278e3623857c5a (diff) | |
download | vyos-cloud-init-bfaee8cc9b8fd23dbc118ae548fc2ca695a0d707.tar.gz vyos-cloud-init-bfaee8cc9b8fd23dbc118ae548fc2ca695a0d707.zip |
integration_tests: restore emission of settings to log (#657)
Diffstat (limited to 'tests/integration_tests/clouds.py')
-rw-r--r-- | tests/integration_tests/clouds.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/integration_tests/clouds.py b/tests/integration_tests/clouds.py index 71d4e85d..fe89c0c6 100644 --- a/tests/integration_tests/clouds.py +++ b/tests/integration_tests/clouds.py @@ -31,6 +31,17 @@ class IntegrationCloud(ABC): self.cloud_instance = self._get_cloud_instance() self.image_id = self._get_initial_image() + def emit_settings_to_log(self) -> None: + log.info( + "\n".join( + ["Settings:"] + + [ + "{}={}".format(key, getattr(self.settings, key)) + for key in sorted(self.settings.current_settings) + ] + ) + ) + @abstractmethod def _get_cloud_instance(self): raise NotImplementedError |