Skip to content
This repository has been archived by the owner on Nov 19, 2020. It is now read-only.

Commit

Permalink
Lookup resource group name when creating security groups
Browse files Browse the repository at this point in the history
  • Loading branch information
danhigham committed Mar 17, 2016
1 parent 032f2b7 commit f9d3c66
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions install_steps/configure_security_groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def do_step(context):
direction="InBound"
)

rules_client.create_or_update("cf", settings['NSG-NAME-FOR-CF'], "http_inbound", rule)
rules_client.create_or_update(settings['RESOURCE-GROUP-NAME'], settings['NSG-NAME-FOR-CF'], "http_inbound", rule)

rule = SecurityRule(
description="",
Expand All @@ -89,7 +89,7 @@ def do_step(context):
direction="InBound"
)

rules_client.create_or_update("cf", settings['NSG-NAME-FOR-CF'], "https_inbound", rule)
rules_client.create_or_update(settings['RESOURCE-GROUP-NAME'], settings['NSG-NAME-FOR-CF'], "https_inbound", rule)

rule = SecurityRule(
description="",
Expand All @@ -103,7 +103,7 @@ def do_step(context):
direction="InBound"
)

rules_client.create_or_update("cf", settings['NSG-NAME-FOR-CF'], "ssh_proxy_inbound", rule)
rules_client.create_or_update(settings['RESOURCE-GROUP-NAME'], settings['NSG-NAME-FOR-CF'], "ssh_proxy_inbound", rule)


return context

0 comments on commit f9d3c66

Please sign in to comment.