Add sas_address and sas_device_handle to ansible disk device facts (#15201)

This commit is contained in:
Adam Hamsik 2016-04-25 17:22:46 +02:00 committed by Brian Coca
parent 1211a0fa12
commit 2424d57868

View file

@ -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