Skip to content

Fix inconsistent profile names with different AWS partitions#133

Merged
slycoder merged 1 commit intophysera:masterfrom
smaato:master
Oct 16, 2018
Merged

Fix inconsistent profile names with different AWS partitions#133
slycoder merged 1 commit intophysera:masterfrom
smaato:master

Conversation

@tuxinaut
Copy link
Contributor

Description

AWS has multiple partitions e.g aws-cn or aws-us-gov which where previously not properly handled and cause not consistent OneLogin profile names.

See in addition:

Related Issue

#132

Motivation and Context

Unified OneLogin profile names in ~/.aws/credentials

How Has This Been Tested?

  • Run tests with python setup.py nosetests
  • Logged into China AWS account with onelogin-aws-cli version 0.1.15
  • Logged into China AWS account with updated version
  • Compared the output in ~/.aws/credentials

AWS has multiple partitions e.g aws-cn or aws-us-gov which where
previously not properly handled and cause not consistent OneLogin profile
names.

See in addition:

- https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/pseudo-parameter-reference.html#cfn-pseudo-param-partition
@codecov-io
Copy link

codecov-io commented Oct 16, 2018

Codecov Report

Merging #133 into master will decrease coverage by 0.16%.
The diff coverage is 25%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #133      +/-   ##
==========================================
- Coverage   77.01%   76.85%   -0.17%     
==========================================
  Files           6        6              
  Lines         335      337       +2     
==========================================
+ Hits          258      259       +1     
- Misses         77       78       +1
Impacted Files Coverage Δ
onelogin_aws_cli/__init__.py 66.98% <25%> (-0.33%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9b203bc...8770321. Read the comment docs.

@slycoder
Copy link
Contributor

Looks great, thanks!

@slycoder slycoder merged commit dfa2f4b into physera:master Oct 16, 2018
chrono added a commit to chrono/onelogin-aws-cli that referenced this pull request Oct 25, 2018
…ling

* physera/master:
  Make sts client region aware (physera#134)
  Fix inconsistent profile names with different AWS partitions (physera#133)
  fix company typo (physera#129)
  Version bump
  Update pipfile.lock
  Add region option to command line and configuration file. (physera#127)
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.

3 participants