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:
parent
c333c3eb9c
commit
38eb88249e
@ -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
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user