Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SooLee committed Jul 18, 2018
1 parent b089ffd commit 8a6b62d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/ec2_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def create_json(input_dict, jobid):
log_bucket = input_dict.get('config').get('log_bucket')

# pre is a dictionary to be printed as a pre-run json file.
pre = {'config': input_dict.get('config')} # copy only config since arg is redundant with 'Job'
pre = {'config': input_dict.get('config').copy()} # copy only config since arg is redundant with 'Job'
pre.update({'Job': {'JOBID': jobid,
'App': {
'App_name': a['app_name'],
Expand Down
2 changes: 1 addition & 1 deletion core/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ def create_stepfunction(dev_suffix=None,
lambda_suffix = ''
sfn_name = 'tibanna_' + sfn_type + lambda_suffix
lambda_arn_prefix = "arn:aws:lambda:" + region_name + ":" + aws_acc + ":function:"
if sfn_type == 'pony': # 4dn
if sfn_type == 'pony' or not usergroup: # 4dn
sfn_role_arn = "arn:aws:iam::" + aws_acc + ":role/service-role/StatesExecutionRole-" + region_name
else:
sfn_role_arn = "arn:aws:iam::" + aws_acc + ":role/" + \
Expand Down

0 comments on commit 8a6b62d

Please sign in to comment.