Skip to content

Commit

Permalink
Fix cloud-init log collection (os-autoinst#20096)
Browse files Browse the repository at this point in the history
Properly takes in account IPADDR_CLOUDINIT setting default when deciding
if log collection is needed or not.
  • Loading branch information
mpagot authored Sep 2, 2024
1 parent 06db8f2 commit 24e2ebe
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/sles4sap/ipaddr2/configure.pm
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ sub test_flags {
sub post_fail_hook {
my ($self) = shift;
ipaddr2_deployment_logs() if check_var('IPADDR2_DIAGNOSTIC', 1);
ipaddr2_os_cloud_init_logs() if (check_var('IPADDR2_CLOUDINIT', 1));
ipaddr2_os_cloud_init_logs() unless check_var('IPADDR2_CLOUDINIT', 0);
ipaddr2_destroy();
$self->SUPER::post_fail_hook;
}
Expand Down
2 changes: 1 addition & 1 deletion tests/sles4sap/ipaddr2/deploy.pm
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ sub test_flags {
sub post_fail_hook {
my ($self) = shift;
ipaddr2_deployment_logs() if check_var('IPADDR2_DIAGNOSTIC', 1);
ipaddr2_os_cloud_init_logs() if (check_var('IPADDR2_CLOUDINIT', 1));
ipaddr2_os_cloud_init_logs() unless check_var('IPADDR2_CLOUDINIT', 0);
ipaddr2_destroy();
$self->SUPER::post_fail_hook;
}
Expand Down
2 changes: 1 addition & 1 deletion tests/sles4sap/ipaddr2/sanity.pm
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ sub test_flags {
sub post_fail_hook {
my ($self) = shift;
ipaddr2_deployment_logs() if check_var('IPADDR2_DIAGNOSTIC', 1);
ipaddr2_os_cloud_init_logs() if (check_var('IPADDR2_CLOUDINIT', 1));
ipaddr2_os_cloud_init_logs() unless check_var('IPADDR2_CLOUDINIT', 0);
ipaddr2_destroy();
$self->SUPER::post_fail_hook;
}
Expand Down
2 changes: 1 addition & 1 deletion tests/sles4sap/ipaddr2/test.pm
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ sub test_flags {
sub post_fail_hook {
my ($self) = shift;
ipaddr2_deployment_logs() if check_var('IPADDR2_DIAGNOSTIC', 1);
ipaddr2_os_cloud_init_logs() if (check_var('IPADDR2_CLOUDINIT', 1));
ipaddr2_os_cloud_init_logs() unless check_var('IPADDR2_CLOUDINIT', 0);
ipaddr2_destroy();
$self->SUPER::post_fail_hook;
}
Expand Down

0 comments on commit 24e2ebe

Please sign in to comment.