From 6a3961ea43fc42b89c16c24c58a60408d1129797 Mon Sep 17 00:00:00 2001 From: Lili Nie Date: Mon, 29 Jul 2024 05:50:16 -0400 Subject: [PATCH] Remove redundant parsing user_data code --- tmt/steps/provision/artemis.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/tmt/steps/provision/artemis.py b/tmt/steps/provision/artemis.py index 551264a23c..c885e5fb1d 100644 --- a/tmt/steps/provision/artemis.py +++ b/tmt/steps/provision/artemis.py @@ -741,20 +741,7 @@ def go(self, *, logger: Optional[tmt.log.Logger] = None) -> None: if self.data.api_version not in SUPPORTED_API_VERSIONS: raise ArtemisProvisionError(f"API version '{self.data.api_version}' not supported.") - try: - user_data = { - key.strip(): value.strip() - for key, value in ( - pair.split('=', 1) - for pair in self.data.user_data - ) - } - - except ValueError: - raise ArtemisProvisionError('Cannot parse user-data.') - data = ArtemisGuestData.from_plugin(self) - data.user_data = user_data data.show(verbose=self.verbosity_level, logger=self._logger)