Commit d7fcd945 by Brian Coca

Merge pull request #11288 from kstrauser/aixfixes

Don't panic if AIX's uname doesn't support -W
parents 896da2a0 eb820837
...@@ -2218,7 +2218,7 @@ class AIXNetwork(GenericBsdIfconfigNetwork, Network): ...@@ -2218,7 +2218,7 @@ class AIXNetwork(GenericBsdIfconfigNetwork, Network):
rc, out, err = module.run_command([uname_path, '-W']) rc, out, err = module.run_command([uname_path, '-W'])
# don't bother with wpars it does not work # don't bother with wpars it does not work
# zero means not in wpar # zero means not in wpar
if out.split()[0] == '0': if not rc and out.split()[0] == '0':
if current_if['macaddress'] == 'unknown' and re.match('^en', current_if['device']): if current_if['macaddress'] == 'unknown' and re.match('^en', current_if['device']):
entstat_path = module.get_bin_path('entstat') entstat_path = module.get_bin_path('entstat')
if entstat_path: if entstat_path:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment