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

pkg/ansible/controller/reconcile.go: fix invalid logger.Info usage #2031

Merged
merged 2 commits into from
Oct 10, 2019

Conversation

joelanford
Copy link
Member

Description of the change:
This PR fixes invalid usages of logger.Info in pkg/ansible/controller/reconcile.go that cause a panic due to an invalid number of arguments passed to the function.

logger.Info requires an odd number of arguments, consisting of a mandatory message and an optional list of key1, value1, key2, value2, ..., keyN, valueN pairs.

Motivation for the change:
See #2025

Closes #2025

@openshift-ci-robot openshift-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Oct 10, 2019
@joelanford joelanford added kind/bug Categorizes issue or PR as related to a bug. release-blocker This issue blocks the parent release milestone labels Oct 10, 2019
@camilamacedo86
Copy link
Contributor

/test e2e-aws-ansible

Copy link
Contributor

@camilamacedo86 camilamacedo86 left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Oct 10, 2019
@camilamacedo86 camilamacedo86 added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 10, 2019
Copy link
Member

@theishshah theishshah left a comment

Choose a reason for hiding this comment

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

LGTM

@joelanford joelanford merged commit 8132d35 into operator-framework:master Oct 10, 2019
@joelanford joelanford deleted the ansible-log-panic branch October 10, 2019 17:42
theishshah added a commit that referenced this pull request Oct 10, 2019
* cherry picked commit

* backport second bug fix

* revert previous backport
fabianvf pushed a commit to fabianvf/operator-sdk that referenced this pull request Oct 14, 2019
…perator-framework#2031)

* pkg/ansible/controller/reconcile.go: fix invalid logger.Info usage

* CHANGELOG.md: add line for operator-framework#2031
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/bug Categorizes issue or PR as related to a bug. lgtm Indicates that a PR is ready to be merged. release-blocker This issue blocks the parent release milestone size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ansible operator markDone function causing DPANIC in reconcile.go
4 participants