- if not hn or hn == '(none)' or hn == 'localhost' or hn == 'localhost.localdomain':
+ if not hn or hn in ('(none)', 'localhost', 'localhost.localdomain'):
hn = socket.gethostname()
- if not hn or hn == '(none)' or hn == 'localhost':
+ if not hn or hn in ('(none)', 'localhost'):
hn = 'localhost.localdomain'
return hn
--
1.7.3.4
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list