Skip to content

Commit

Permalink
Fix/openstack (#45)
Browse files Browse the repository at this point in the history
* Add functionality to open ports in OpenStack IA

* Open SSh port as default

* Fix missing negation

* Update WAR
  • Loading branch information
wederbn committed Nov 18, 2023
1 parent 5af79e6 commit 473355a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Git LFS file not shown
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ public void createVM(@RequestPayload CreateVMRequest request, MessageContext mes

// open ports within security group
List<String> ports = Arrays.asList(request.getVMOpenPorts().split(","));
if (ports.contains("22")){
if (!ports.contains("22")){
// add SSH port if not defined
ports.add("22");
}
Expand Down

0 comments on commit 473355a

Please sign in to comment.