diff options
Diffstat (limited to 'extras/volgen/glusterfs-volgen.in')
-rwxr-xr-x | extras/volgen/glusterfs-volgen.in | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/extras/volgen/glusterfs-volgen.in b/extras/volgen/glusterfs-volgen.in index 5d9c579cfd5..bd19d122773 100755 --- a/extras/volgen/glusterfs-volgen.in +++ b/extras/volgen/glusterfs-volgen.in @@ -27,10 +27,14 @@ def args2dict(args): keyvalue = {} for arg in args: + if int(arg.find(':')) == -1: + continue first = arg.split(':')[0] keyvalue[first] = [] for arg in args: + if int(arg.find(':')) == -1: + continue first = arg.split(':')[0] if arg.split(':')[1] not in keyvalue[first]: if arg.split(':')[1][0] != '/': @@ -43,7 +47,11 @@ def args2dict(args): def args2array(args): array = [] - array = args + + for arg in args: + if int(arg.find(':')) == -1: + continue + array.append(arg) return array |