Skip to content

Commit

Permalink
Propagate deployment status (#19885)
Browse files Browse the repository at this point in the history
Get peering and Ansible status from the test modue argument allows
post_fails_hook to properly cleanup peering in case of error.
  • Loading branch information
mpagot authored Aug 6, 2024
1 parent 72a1b2f commit 496fedc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/sles4sap/publiccloud/azure_fence_agents_test.pm
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ sub test_flags {

sub run {
my ($self, $run_args) = @_;

# Needed to have peering and ansible state propagated in post_fail_hook
$self->import_context($run_args);

my $instances = $self->{instances} = $run_args->{instances};
my $provider_client = $run_args->{instances}[0]{provider}{provider_client};
my $fence_agent_configuration = get_var('AZURE_FENCE_AGENT_CONFIGURATION', 'msi');
Expand Down

0 comments on commit 496fedc

Please sign in to comment.