Skip to content

Commit

Permalink
Merge pull request umd-lib#148 from dsteelma-umd/feature/LIBFCREPO-943
Browse files Browse the repository at this point in the history
LIBFCREPO-943. Provide a default "container", if not specified in "args"
  • Loading branch information
peichman-umd authored Jan 14, 2021
2 parents e02a0e4 + 0a1fdc9 commit 9899a3e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion plastron/commands/import.py
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,14 @@ def execute(self, repo, args):
create_pages=create_pages
)

item.create(repo, container_path=args.container)
# Use "repo.relpath" as default for "container",
# but allow it to be overridden by args
container = repo.relpath
if hasattr(args, 'container'):
container = args.container
logger.debug(f"container: {container}")

item.create(repo, container_path=container)
item.recursive_update(repo)

count['created'] += 1
Expand Down

0 comments on commit 9899a3e

Please sign in to comment.