Skip to content

Commit

Permalink
Remove redundant parsing user_data code (teemtee#3119)
Browse files Browse the repository at this point in the history
  • Loading branch information
skycastlelily authored and The-Mule committed Oct 14, 2024
1 parent 5e53779 commit 3b7a5e2
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions tmt/steps/provision/artemis.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 3b7a5e2

Please sign in to comment.