-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conditional Templates #2795
Conditional Templates #2795
Changes from all commits
829be87
e86163f
aa74e9c
b34cd87
e1a0cf7
0b0a775
4f317d2
5ce8076
7c0601b
cbe65ed
980b83f
f5d1719
07f83ee
e96af7c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = "0.5.10" | ||
__version__ = "0.5.11" |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -130,13 +130,15 @@ async def create_review_user_resource( | |
# Getting the review configuration from the airlock request's workspace properties | ||
if airlock_request.type == AirlockRequestType.Import: | ||
config = workspace.properties["airlock_review_config"]["import"] | ||
workspace_id = config["workspace_id"] | ||
workspace_id = config["import_vm_workspace_id"] | ||
workspace_service_id = config["import_vm_workspace_service_id"] | ||
user_resource_template_name = config["import_vm_user_resource_template_name"] | ||
else: | ||
assert airlock_request.type == AirlockRequestType.Export | ||
config = workspace.properties["airlock_review_config"]["export"] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same as above, do you need this line? AFAIU there won't be a field name "export" anymore? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the nested structure is still there, so there are parent objects for |
||
workspace_id = workspace.id | ||
workspace_service_id = config["workspace_service_id"] | ||
user_resource_template_name = config["user_resource_template_name"] | ||
workspace_service_id = config["export_vm_orkspace_service_id"] | ||
user_resource_template_name = config["export_vm_user_resource_template_name"] | ||
|
||
logging.info(f"Going to create a user resource in {workspace_id} {workspace_service_id} {user_resource_template_name}") | ||
except (KeyError, TypeError) as e: | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you need this line still?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep - as mentioned below, the structure is still: