Fix python3 compatability for CSV reader support
Somehow we were reading the fine in binary which is unsupported in python3, however as ansible support is limited to 2.7, this likely was not noticed. Changed file open to text mode and there will be joy! Change-Id: Ic3a1db42895f7dc98ae7841b3a7d770b54bfcfbf
This commit is contained in:
parent
740b9fb254
commit
690e4252e5
@ -196,7 +196,7 @@ def _process_baremetal_data(data_source, groups, hostvars):
|
||||
|
||||
def _process_baremetal_csv(data_source, groups, hostvars):
|
||||
"""Process legacy baremetal.csv format"""
|
||||
with open(data_source, 'rb') as file_data:
|
||||
with open(data_source, 'r') as file_data:
|
||||
for row in csv.reader(file_data, delimiter=','):
|
||||
if not row:
|
||||
break
|
||||
|
Loading…
Reference in New Issue
Block a user