mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-03 07:41:30 -07:00
DCI failures (#41241)
This commit is contained in:
parent
34e4071eca
commit
12be102758
3 changed files with 3 additions and 3 deletions
|
@ -252,7 +252,8 @@ class CliConfiguration(ConfigBase):
|
|||
|
||||
def parse_hostname(self, config):
|
||||
match = re.search(r'^hostname (\S+)', config, re.M)
|
||||
return match.group(1)
|
||||
if match:
|
||||
return match.group(1)
|
||||
|
||||
def parse_domain_name(self, config):
|
||||
match = re.search(r'^domain name (\S+)', config, re.M)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue