mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Syntax change for lint
This commit is contained in:
parent
57836bbcb4
commit
0aaf88773f
@ -606,7 +606,7 @@ def find_pool_and_volume(conn, path):
|
||||
|
||||
|
||||
def generate_new_name(orig_name):
|
||||
if not '.' in orig_name:
|
||||
if '.' not in orig_name:
|
||||
return '{0}-{1}'.format(orig_name, uuid.uuid1())
|
||||
|
||||
name, ext = orig_name.rsplit('.', 1)
|
||||
|
Loading…
Reference in New Issue
Block a user