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

Refactor fab_tasks file #49

Merged
merged 5 commits into from
Mar 24, 2015
Merged

Refactor fab_tasks file #49

merged 5 commits into from
Mar 24, 2015

Conversation

ashb
Copy link
Contributor

@ashb ashb commented Mar 24, 2015

This was movitated by get_config having multiple return values and both @mattmb and I wanting to add a new (different) value - 5 is too certainly too many.

Main changes are:

  • get_config() now returns just a ConfigParser instance
  • get_connection helper function added to get Cloudformation, EC2, IAM etc connection objects
  • PEP8 fixes.
  • Removed the unused task get_stack_addresses (it was unused cos it didn't do what it said - it returned IDs, not IPs)

We were returning more and more things from get_config, not all of which was used everywhere (and we wanted to add 2 more) and that was just getting silly. Most of what we were returning was only used to pass in to EC2 or Cloudformation constructors, so lets just make it easier to create those instances.
I know it was unused because the implementation would end up returning IDs, not IPs.
Including showing us that we have some dead code paths :/
@pidah
Copy link
Contributor

pidah commented Mar 24, 2015

LGTM; can we update the Changelog

@coveralls
Copy link

Coverage Status

Coverage increased (+3.01%) to 46.91% when pulling e051375 on refactor-fab_tasks into 093d2f9 on master.

mattmb added a commit that referenced this pull request Mar 24, 2015
@mattmb mattmb merged commit aecbe0f into master Mar 24, 2015
@mattmb mattmb deleted the refactor-fab_tasks branch March 24, 2015 11:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants