Skip to content

Commit

Permalink
Merge pull request #44 from uyuni-project/revert-9450-setup-cleanup
Browse files Browse the repository at this point in the history
Revert 9450 setup cleanup
  • Loading branch information
jordimassaguerpla authored Nov 21, 2024
2 parents 0194bae + 6effbdc commit de5dfa2
Show file tree
Hide file tree
Showing 5 changed files with 693 additions and 29 deletions.
2 changes: 1 addition & 1 deletion java/code/src/com/redhat/rhn/FaultException.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

import com.redhat.rhn.common.localization.LocalizationService;
import com.redhat.rhn.common.validator.ValidatorResult;

// TEST
import java.util.Optional;

/**
Expand Down
5 changes: 5 additions & 0 deletions spacewalk/setup/bin/spacewalk-setup
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ push @skip, Spacewalk::Setup::EMBEDDED_DB_ANSWERS
Spacewalk::Setup::load_answer_file(\%opts, \%answers, \@skip);
my $product_name = $answers{'product_name'} || 'Spacewalk';

my $hn = `/bin/hostname -f`;
chomp($hn);
$hn = Sys::Hostname::hostname if(!defined $hn || $hn eq "");
$answers{hostname} ||= "$hn";

if (not $opts{"skip-fqdn-test"} and
not (lc($answers{hostname}) eq $answers{hostname})) {
print Spacewalk::Setup::loc(
Expand Down

This file was deleted.

Loading

0 comments on commit de5dfa2

Please sign in to comment.