8000 add TargetGroupInfo to DeploymentGroup #884 by ScOut3R · Pull Request #895 · cloudtools/troposphere · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

add TargetGroupInfo to DeploymentGroup #884 #895

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

Merged
merged 2 commits into from
Nov 7, 2017

Conversation

ScOut3R
Copy link
Contributor
@ScOut3R ScOut3R commented Nov 4, 2017

Hi,

my Python is sysadmin-like so this PR might got the solution totally wrong. The reason I'm raising is I just hit this missing feature today and thought I'd give it a try to implement it for #884.

Copy link
Member
@markpeek markpeek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great. Just two minor changes if you can fix and push again. Thanks!

@@ -4,7 +4,7 @@
# See LICENSE file for full license.

from . import AWSObject, AWSProperty
from .validators import boolean, positive_integer
from .validators import boolean, positive_integer, exactly_one
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please alphabetize.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

class LoadBalancerInfo(AWSProperty):
props = {
'ElbInfoList': ([ElbInfoList], False)
'ElbInfoList': ([ElbInfoList], False),
'TargetGroupInfoList': ([TargetGroupInfoList], False)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I usually always add commas at the end of these lists to make future additions a 1 line change.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, I'm always happy to learn best practices.

@markpeek markpeek merged commit 87d2545 into cloudtools:master Nov 7, 2017
@markpeek
Copy link
Member
markpeek commented Nov 7, 2017

Thanks! (Fixes #884)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0