From 2424d57868220263566e5993bced9012d59fc589 Mon Sep 17 00:00:00 2001 From: Adam Hamsik Date: Mon, 25 Apr 2016 17:22:46 +0200 Subject: [PATCH] Add sas_address and sas_device_handle to ansible disk device facts (#15201) --- lib/ansible/module_utils/facts.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/module_utils/facts.py b/lib/ansible/module_utils/facts.py index 99cc1c50d3..767fabbe0f 100644 --- a/lib/ansible/module_utils/facts.py +++ b/lib/ansible/module_utils/facts.py @@ -1195,7 +1195,7 @@ class LinuxHardware(Hardware): continue d = {} diskname = os.path.basename(sysdir) - for key in ['vendor', 'model']: + for key in ['vendor', 'model', 'sas_address', 'sas_device_handle']: d[key] = get_file_content(sysdir + "/device/" + key) for key,test in [ ('removable','/removable'), \ @@ -2130,7 +2130,7 @@ class LinuxNetwork(Network): # If this is the default address, update default_ipv4 if 'address' in default_ipv4 and default_ipv4['address'] == address: - default_ipv4['broadcast'] = broadcast + default_ipv4['broadcast'] = broadcast default_ipv4['netmask'] = netmask default_ipv4['network'] = network default_ipv4['macaddress'] = macaddress