make name unique
This commit is contained in:
parent
fabbcb669e
commit
6c027c344e
1 changed files with 1 additions and 1 deletions
|
@ -990,7 +990,7 @@ class Client(object):
|
||||||
urls = [u for u in args if u.startswith('http:')]
|
urls = [u for u in args if u.startswith('http:')]
|
||||||
name = [u for u in args if u not in urls]
|
name = [u for u in args if u not in urls]
|
||||||
if not name:
|
if not name:
|
||||||
name = socket.gethostname()
|
name = '%s-%s' % (socket.gethostname(), int(time.time()))
|
||||||
else:
|
else:
|
||||||
name = name[0]
|
name = name[0]
|
||||||
if not urls:
|
if not urls:
|
||||||
|
|
Loading…
Reference in a new issue