Skip to content

Commit

Permalink
Use Stage when checking if in installer. bnc#960040
Browse files Browse the repository at this point in the history
When generating AY profile at the end of installer, Mode.installation
fails. So, using Stage.initial is better choice.
  • Loading branch information
mchf committed Feb 5, 2016
1 parent cdcec99 commit 6f31a56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/types/src/modules/Hostname.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def main
Yast.import "IP"
Yast.import "String"
Yast.import "FileUtils"
Yast.import "Mode"
Yast.import "Stage"

# i18n characters in domain names are still not allowed
#
Expand Down Expand Up @@ -247,7 +247,7 @@ def CurrentDomain
#
# Basicaly, linuxrc sometimes resolves IP when querying "hostname --fqdn"
def invalid_hostname?(hostname)
Mode.installation && IP.Check(hostname)
Stage.initial && IP.Check(hostname)
end
end

Expand Down

0 comments on commit 6f31a56

Please sign in to comment.