From 24e2c989570467fc47b219b6f0ae977b9305d5bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Ferr=C3=A3o?= <2031761+viniciusferrao@users.noreply.github.com> Date: Tue, 14 Jul 2026 19:11:28 -0300 Subject: [PATCH] style(statelite): align image cache assignments --- xCAT-server/lib/xcat/plugins/anaconda.pm | 10 +++++----- xCAT-server/lib/xcat/plugins/debian.pm | 10 +++++----- xCAT-server/lib/xcat/plugins/sles.pm | 10 +++++----- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/anaconda.pm b/xCAT-server/lib/xcat/plugins/anaconda.pm index 0187aef47..6ad77d3b3 100644 --- a/xCAT-server/lib/xcat/plugins/anaconda.pm +++ b/xCAT-server/lib/xcat/plugins/anaconda.pm @@ -286,11 +286,11 @@ sub mknetboot } (my $ref) = $osimagetab->getAttribs({ imagename => $imagename }, 'osvers', 'osarch', 'profile', 'provmethod', 'rootfstype', 'nfsrootopts'); if ($ref) { - $img_hash{$imagename}->{osver} = $ref->{'osvers'}; - $img_hash{$imagename}->{osarch} = $ref->{'osarch'}; - $img_hash{$imagename}->{profile} = $ref->{'profile'}; - $img_hash{$imagename}->{provmethod} = $ref->{'provmethod'}; - $img_hash{$imagename}->{rootfstype} = $ref->{rootfstype}; + $img_hash{$imagename}->{osver} = $ref->{'osvers'}; + $img_hash{$imagename}->{osarch} = $ref->{'osarch'}; + $img_hash{$imagename}->{profile} = $ref->{'profile'}; + $img_hash{$imagename}->{provmethod} = $ref->{'provmethod'}; + $img_hash{$imagename}->{rootfstype} = $ref->{rootfstype}; $img_hash{$imagename}->{nfsrootopts} = $ref->{nfsrootopts}; if (!$linuximagetab) { $linuximagetab = xCAT::Table->new('linuximage', -create => 1); diff --git a/xCAT-server/lib/xcat/plugins/debian.pm b/xCAT-server/lib/xcat/plugins/debian.pm index 113414b85..4051ca18e 100644 --- a/xCAT-server/lib/xcat/plugins/debian.pm +++ b/xCAT-server/lib/xcat/plugins/debian.pm @@ -1182,11 +1182,11 @@ sub mknetboot } (my $ref) = $osimagetab->getAttribs({ imagename => $imagename }, 'osvers', 'osarch', 'profile', 'provmethod', 'rootfstype', 'nfsrootopts'); if ($ref) { - $img_hash{$imagename}->{osver} = $ref->{'osvers'}; - $img_hash{$imagename}->{osarch} = $ref->{'osarch'}; - $img_hash{$imagename}->{profile} = $ref->{'profile'}; - $img_hash{$imagename}->{provmethod} = $ref->{'provmethod'}; - $img_hash{$imagename}->{rootfstype} = $ref->{'rootfstype'}; + $img_hash{$imagename}->{osver} = $ref->{'osvers'}; + $img_hash{$imagename}->{osarch} = $ref->{'osarch'}; + $img_hash{$imagename}->{profile} = $ref->{'profile'}; + $img_hash{$imagename}->{provmethod} = $ref->{'provmethod'}; + $img_hash{$imagename}->{rootfstype} = $ref->{'rootfstype'}; $img_hash{$imagename}->{nfsrootopts} = $ref->{'nfsrootopts'}; if (!$linuximagetab) { $linuximagetab = xCAT::Table->new('linuximage', -create => 1); diff --git a/xCAT-server/lib/xcat/plugins/sles.pm b/xCAT-server/lib/xcat/plugins/sles.pm index e2ac19691..4e42a9b02 100644 --- a/xCAT-server/lib/xcat/plugins/sles.pm +++ b/xCAT-server/lib/xcat/plugins/sles.pm @@ -150,12 +150,12 @@ sub mknetboot } (my $ref) = $osimagetab->getAttribs({ imagename => $imagename }, 'osvers', 'osarch', 'profile', 'rootfstype', 'nfsrootopts', 'provmethod'); if ($ref) { - $img_hash{$imagename}->{osver} = $ref->{'osvers'}; - $img_hash{$imagename}->{osarch} = $ref->{'osarch'}; - $img_hash{$imagename}->{profile} = $ref->{'profile'}; - $img_hash{$imagename}->{rootfstype} = $ref->{'rootfstype'}; + $img_hash{$imagename}->{osver} = $ref->{'osvers'}; + $img_hash{$imagename}->{osarch} = $ref->{'osarch'}; + $img_hash{$imagename}->{profile} = $ref->{'profile'}; + $img_hash{$imagename}->{rootfstype} = $ref->{'rootfstype'}; $img_hash{$imagename}->{nfsrootopts} = $ref->{'nfsrootopts'}; - $img_hash{$imagename}->{provmethod} = $ref->{'provmethod'}; + $img_hash{$imagename}->{provmethod} = $ref->{'provmethod'}; if (!$linuximagetab) { $linuximagetab = xCAT::Table->new('linuximage', -create => 1); }