Skip to content
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

fixes cisco for username and password #2267

Merged
merged 3 commits into from
Sep 25, 2018
Merged

fixes cisco for username and password #2267

merged 3 commits into from
Sep 25, 2018

Conversation

gmmeyer
Copy link
Contributor

@gmmeyer gmmeyer commented Sep 18, 2018

What does this PR do?

The Cisco ACI Integration had a regression in username and password when we added certificates

Motivation

issue #2237 from @jgcasd

Review checklist

  • PR has a meaningful title or PR has the no-changelog label attached
  • Feature or bugfix has tests
  • Git history is clean
  • If PR impacts documentation, docs team has been notified or an issue has been opened on the documentation repo

Additional Notes

Anything else we should know when reviewing?

@codecov-io
Copy link

codecov-io commented Sep 18, 2018

Codecov Report

Merging #2267 into master will increase coverage by 15.3%.
The diff coverage is 37.5%.

@@            Coverage Diff             @@
##           master    #2267      +/-   ##
==========================================
+ Coverage   79.77%   95.08%   +15.3%     
==========================================
  Files         170       17     -153     
  Lines        7838     5171    -2667     
  Branches     1159      195     -964     
==========================================
- Hits         6253     4917    -1336     
+ Misses       1275      183    -1092     
+ Partials      310       71     -239

cookie = ('APIC-Request-Signature={}; '
'APIC-Certificate-Algorithm=v1.0; '
'APIC-Certificate-Fingerprint=fingerprint; '
'APIC-Certificate-DN={}').format(signature, self.certDn)
prepped_request.headers['Cookie'] = cookie
else:
self.log.warning("The Cisco ACI Integration requires either a cert or a username and password")
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't this be an error instead ? Can we even continue the check if we have neither ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yea it should be

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it will just error out anyway

zippolyte
zippolyte previously approved these changes Sep 25, 2018
@gmmeyer gmmeyer merged commit 1164eea into master Sep 25, 2018
@gmmeyer gmmeyer deleted the greg/cisco branch September 25, 2018 21:54
nmuesch pushed a commit that referenced this pull request Nov 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants