2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-01-14 19:57:50 +00:00

Permit wildcard in syncfiles

This was a supported and used feature in xCAT
syncfiles, carry it into confluent syncfiles.
This commit is contained in:
Jarrod Johnson 2021-04-27 09:12:11 -04:00
parent c333c3eb9c
commit 38eb88249e

View File

@ -45,7 +45,7 @@ class SyncList(object):
ent = ent[:cmtidx]
except ValueError:
pass
for special in '!@$%^&*()|{}':
for special in '!@$%^&()|{}':
if special in ent:
raise Exception(
'Special character "{}" reserved for future use'.format(special))
@ -65,7 +65,10 @@ class SyncList(object):
v = v.strip()
else:
k = ent
v = ent
if '*' in ent:
v = os.path.dirname(ent)
else:
v = ent
currmap[k] = v