Skip to content

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

Merged
joelanford merged 2 commits intooperator-framework:masterfrom
joelanford:ansible-log-panic
Oct 10, 2019
Merged

pkg/ansible/controller/reconcile.go: fix invalid logger.Info usage#2031
joelanford merged 2 commits intooperator-framework:masterfrom
joelanford:ansible-log-panic

Conversation

@joelanford
Copy link
Copy Markdown
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
Copy Markdown
Contributor

/test e2e-aws-ansible

Comment thread pkg/ansible/controller/reconcile.go
Copy link
Copy Markdown
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
Copy Markdown
Contributor

@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 pushed 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