From 4ad9db20a4bbe263fa9174f6948768d47591f492 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Ferr=C3=A3o?= <2031761+viniciusferrao@users.noreply.github.com> Date: Fri, 4 Sep 2026 18:03:05 -0300 Subject: [PATCH] refactor(genesis): follow mknb perl style --- xCAT-server/lib/xcat/plugins/mknb.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/mknb.pm b/xCAT-server/lib/xcat/plugins/mknb.pm index 5b29ce9c3..c7a6ced38 100644 --- a/xCAT-server/lib/xcat/plugins/mknb.pm +++ b/xCAT-server/lib/xcat/plugins/mknb.pm @@ -303,7 +303,7 @@ sub _remove_openembedded_genesis { ); if ($arch eq 's390x') { my $config_directory = "$tftpdir/pxelinux.cfg/s390x"; - if (opendir(my $config_stream, $config_directory)) { + if (opendir my $config_stream, $config_directory) { foreach my $name (readdir $config_stream) { if ($name =~ m{\A[.][.]?\z}xms) { next; @@ -765,7 +765,7 @@ sub process_request { } elsif ($arch eq 's390x') { my $path = "$tftpdir/pxelinux.cfg/s390x/$net"; if (_is_generated_s390x_config($path)) { - if (!unlink($path)) { + if (!unlink $path) { $callback->({ error => ["Unable to remove s390x Genesis configuration: $path: $OS_ERROR"], errorcode => [1] }); $s390x_config_error = 1; }