Skip to content

Undefined variables in boundary_meter #29387

@ansibot

Description

@ansibot

From @abadger on 2016-10-23T23:16:22Z

ISSUE TYPE
  • Bug Report
COMPONENT NAME

monitoring/boundary_meter.py

ANSIBLE VERSION
devel 2.2
SUMMARY

When porting to python3 I ran pyflakes on boundary_meter.py and found that there are several undefined variables. These probably make state=absent traceback and state=present when the cert file needs to be downloaded.

delete_meter problem

https://github.com/ansible/ansible-modules-extras/blob/devel/monitoring/boundary_meter.py#L191

action is used here but not defined at this point in the code.

create_meter problems

https://github.com/ansible/ansible-modules-extras/blob/devel/monitoring/boundary_meter.py#L216

At this point result is not defined. Perhaps you meant response instead?

Copied from original issue: ansible/ansible-modules-extras#3277

Metadata

Metadata

Assignees

No one assigned

    Labels

    affects_2.2This issue/PR affects Ansible v2.2bugThis issue/PR relates to a bug.moduleThis issue/PR relates to a module.support:communityThis issue/PR relates to code supported by the Ansible community.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions