Commit ea74ea43 by Timothée Peignier

Merge pull request #454 from carljm/get-available-name-max-length

Add max_length arg to PipelineStorage.get_available_name.
parents 7c0df36f 0259d37f
...@@ -39,7 +39,7 @@ class PipelineMixin(object): ...@@ -39,7 +39,7 @@ class PipelineMixin(object):
for name, hashed_name, processed in super_class.post_process(paths.copy(), dry_run, **options): for name, hashed_name, processed in super_class.post_process(paths.copy(), dry_run, **options):
yield name, hashed_name, processed yield name, hashed_name, processed
def get_available_name(self, name): def get_available_name(self, name, max_length=None):
if self.exists(name): if self.exists(name):
self.delete(name) self.delete(name)
return name return name
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment