Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove redundant parsing user_data code #3119

Merged
merged 1 commit into from
Aug 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading