Skip to content

Commit

Permalink
removed Config suffix from Elastigroup resource names (#535)
Browse files Browse the repository at this point in the history
* removed Config prefix from Elastigroup resource names
  • Loading branch information
lmineiro authored and jmcs committed Sep 18, 2018
1 parent 935f411 commit 98bcf0f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion senza/components/elastigroup.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def component_elastigroup(definition, configuration, args, info, force, account_
extract_instance_profile(args, definition, configuration, elastigroup_config)
# cfn definition
access_token = _extract_spotinst_access_token(definition)
config_name = configuration["Name"] + "Config"
config_name = configuration["Name"]
definition["Resources"][config_name] = {
"Type": "Custom::elastigroup",
"Properties": {
Expand Down
2 changes: 1 addition & 1 deletion tests/test_elastigroup.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def test_component_elastigroup_defaults(monkeypatch):

result = component_elastigroup(definition, configuration, args, info, False, mock_account_info)

properties = result["Resources"]["eg1Config"]["Properties"]
properties = result["Resources"]["eg1"]["Properties"]
assert properties["accountId"] == 'act-12345abcdef'
assert properties["group"]["capacity"] == {"target": 1, "minimum": 1, "maximum": 1}
instance_types = properties["group"]["compute"]["instanceTypes"]
Expand Down

0 comments on commit 98bcf0f

Please sign in to comment.