Skip to content

Commit

Permalink
adding partial fix for #24
Browse files Browse the repository at this point in the history
  • Loading branch information
iannesbitt committed Jun 1, 2023
1 parent 1775d4e commit 15e64de
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mnonboard/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ def create_subj_in_acct_svc(ssh: SSHClient, cert: str, files: list, cn: str):
"""
for f in files:
f = os.path.split(f)[1]
command = 'curl -s --cert %s -F person=@%s -X POST %s/v2/accounts' % (
command = 'sudo curl -s --cert %s -F person=@%s -X POST %s/v2/accounts' % (
cert, f, cn
)
L.info('Creating subject: %s' % (command))
Expand All @@ -348,7 +348,7 @@ def validate_subj_in_acct_svc(ssh: SSHClient, cert: str, names: dict, cn: str):
"""
for n in names:
orcid_urlenc = urlparse.quote(n)
command = 'curl -s --cert %s -X PUT %s/v2/accounts/verification/%s' % (
command = 'sudo curl -s --cert %s -X PUT %s/v2/accounts/verification/%s' % (
cert, cn, orcid_urlenc
)
L.info('Validating subject: %s' % (command))
Expand All @@ -358,7 +358,7 @@ def dl_node_capabilities(ssh: SSHClient, baseurl: str, node_dir: str, node_id: s
"""
"""
node_filename = '%s/%s-node.xml' % (node_dir, node_id)
command = 'curl "https://%s/v2/node" > %s' % (baseurl, node_filename)
command = 'sudo curl "https://%s/v2/node" > %s' % (baseurl, node_filename)
L.info('Downloading node capabilities: %s' % (command))
ssh.exec_command(command)
return node_filename
Expand Down

0 comments on commit 15e64de

Please sign in to comment.