1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Merge remote-tracking branch 'ansible/devel' into devel

This commit is contained in:
maty0609 2015-08-27 10:29:48 +01:00
commit 52e94468c9
2 changed files with 7 additions and 2 deletions

View file

@ -145,8 +145,13 @@ New Modules:
* vmware: vmware_cluster * vmware: vmware_cluster
* vmware: vmware_dns_config * vmware: vmware_dns_config
* vmware: vmware_dvs_host * vmware: vmware_dvs_host
* vmware: vmware_dvs_portgroup
* vmware: vmware_dvswitch
* vmware: vmware_host
* vmware: vmware_vmkernel_ip_config
* vmware: vmware_portgroup * vmware: vmware_portgroup
* vmware: vmware_vm_facts * vmware: vmware_vm_facts
* vmware: vmware_vmkernel
* vmware: vmware_vsan_cluster * vmware: vmware_vsan_cluster
* vmware: vmware_vswitch * vmware: vmware_vswitch
* vmware: vca_fw * vmware: vca_fw

View file

@ -30,7 +30,7 @@ class LookupModule(LookupBase):
try: try:
f = codecs.open(filename, 'r', encoding='utf-8') f = codecs.open(filename, 'r', encoding='utf-8')
creader = csv.reader(f, delimiter=delimiter) creader = csv.reader(f, delimiter=str(delimiter))
for row in creader: for row in creader:
if row[0] == key: if row[0] == key:
@ -70,7 +70,7 @@ class LookupModule(LookupBase):
paramvals['delimiter'] = "\t" paramvals['delimiter'] = "\t"
lookupfile = self._loader.path_dwim_relative(basedir, 'files', paramvals['file']) lookupfile = self._loader.path_dwim_relative(basedir, 'files', paramvals['file'])
var = self.read_csv(lookupfile, key, paramvals['delimiter'], paramvals['default'], paramvals['col']) var = self.read_csv(lookupfile, key, str(paramvals['delimiter']), paramvals['default'], paramvals['col'])
if var is not None: if var is not None:
if type(var) is list: if type(var) is list:
for v in var: for v in var: