Skip to content

Commit

Permalink
fix(push): fix bug in owner account
Browse files Browse the repository at this point in the history
This bug was not found since so far the owner of the account and all the dependencies were the same account.
  • Loading branch information
mostaphaRoudsari committed Feb 7, 2021
1 parent aef84b7 commit 135e1f9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pollination_dsl/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,10 +176,12 @@ def push_resource(ctx, package_name, endpoint, source, public, tag, dry_run):
data = yaml.safe_load(dep_file.read_bytes())
for dep in data['dependencies']:
dep_name = name_to_pollination(dep['name'])
owner = _get_package_owner(dep_name)
dep['source'] = os.path.join(source, owner).replace('\\', '/')
dep_owner = _get_package_owner(dep_name)
dep['source'] = os.path.join(source, dep_owner).replace('\\', '/')
yaml.dump(data, dep_file.open('w'))

print(f'pushing {owner}/{sub_folder}:{tag} to {endpoint}')

if dry_run:
print(folder, file=sys.stderr)
else:
Expand Down

0 comments on commit 135e1f9

Please sign in to comment.