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

Drop two no longer used methods from prepare step #2672

Merged
merged 1 commit into from
Feb 13, 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
18 changes: 0 additions & 18 deletions tmt/steps/prepare/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,24 +162,6 @@ def summary(self) -> None:
self.preparations_applied, 'preparation')
self.info('summary', f'{preparations} applied', 'green', shift=1)

def _prepare_roles(self) -> collections.defaultdict[str, list[str]]:
""" Create a mapping of roles to guest names """
role_mapping = collections.defaultdict(list)
for guest in self.plan.provision.guests():
if guest.role:
role_mapping[guest.role].append(guest.name)
return role_mapping

def _prepare_hosts(self) -> dict[str, str]:
""" Create a mapping of guest names to IP addresses """
host_mapping = {}
for guest in self.plan.provision.guests():
if hasattr(guest, 'guest') and guest.guest:
# FIXME: guest.guest may not be simply an IP address but also
# a host name.
host_mapping[guest.name] = guest.guest
return host_mapping

def go(self, force: bool = False) -> None:
""" Prepare the guests """
super().go(force=force)
Expand Down
Loading