Skip to content

Commit

Permalink
fix(Forc):fixed forc security group
Browse files Browse the repository at this point in the history
  • Loading branch information
dweinholz committed Jul 18, 2023
1 parent bd5ac11 commit 64fb60e
Show file tree
Hide file tree
Showing 4 changed files with 6,637 additions and 2,401 deletions.
4 changes: 3 additions & 1 deletion portal_client.thrift
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,9 @@ service VirtualMachineService {

7:list<map<string,string>> volume_ids_path_new,
8:list<map<string,string>> volume_ids_path_attach,
9:list <string> additional_keys
9:list <string> additional_keys,
10:optional string research_environment

)

throws (1:NameAlreadyUsedException e,2:ResourceNotAvailableException r,5:ImageNotFoundException i,6:FlavorNotFoundException f,7:DefaultException o)
Expand Down
19 changes: 10 additions & 9 deletions simple_vm_client/VirtualMachineHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,15 +307,16 @@ def start_server(
volume_ids_path_new: list[dict[str, str]],
volume_ids_path_attach: list[dict[str, str]],
additional_keys: list[str],
research_environment: str,
) -> str:
# if research_environment:
# research_environment_metadata = (
# self.forc_connector.get_metadata_by_research_environment(
# research_environment=research_environment
# )
# )
# else:
# research_environment_metadata = None
if research_environment:
research_environment_metadata = (
self.forc_connector.get_metadata_by_research_environment(
research_environment=research_environment
)
)
else:
research_environment_metadata = None
return self.openstack_connector.start_server(
flavor_name=flavor_name,
image_name=image_name,
Expand All @@ -325,7 +326,7 @@ def start_server(
volume_ids_path_new=volume_ids_path_new,
volume_ids_path_attach=volume_ids_path_attach,
additional_keys=additional_keys,
# research_environment_metadata=research_environment_metadata,
research_environment_metadata=research_environment_metadata,
)

def start_server_with_custom_key(
Expand Down
Loading

0 comments on commit 64fb60e

Please sign in to comment.