Skip to content

Commit

Permalink
Exec on instance
Browse files Browse the repository at this point in the history
  • Loading branch information
bschimke95 committed Dec 20, 2024
1 parent 30d3f3b commit eee28a6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/integration/tests/test_util/harness/lxd.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,9 @@ def new_instance(self, network_type: str = "IPv4") -> Instance:
except subprocess.CalledProcessError as e:
raise HarnessError(f"Failed to create LXD container {instance_id}") from e

stubbornly(retries=3, delay_s=5).exec(["snap", "wait", "system", "seed.loaded"])
return Instance(self, instance_id)
instance = Instance(self, instance_id)
stubbornly(retries=3, delay_s=5).on(instance).exec(["snap", "wait", "system", "seed.loaded"])
return instance

def _configure_profile(self, profile_name: str, profile_config: str):
LOG.debug("Checking for LXD profile %s", profile_name)
Expand Down

0 comments on commit eee28a6

Please sign in to comment.