Syntax change for lint

This commit is contained in:
Mike Place 2017-05-04 09:40:41 -06:00 committed by GitHub
parent 57836bbcb4
commit 0aaf88773f

View File

@ -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)