Skip to content

1.4.0 'update' function fail: "global name 'logger' is not defined" #271

@leungrc

Description

@leungrc

I've just recently upgraded to version 1.4.0 of cfncluster. Previously I was using version 1.3.1 and I didn't have any particular problems with it, including the 'update' function. However, after upgrading to version 1.4.0, and after trying to 'update' to reflect changes in my ~/.cfncluster/config file, I see the following error (my cluster name is 'mymastercluster'):

cfncluster update mymastercluster
2017-12-03T08:08:12.960 - INFO - cfncluster.cli - CfnCluster cli starting
Updating: mymastercluster
Traceback (most recent call last):
  File "/usr/local/bin/cfncluster", line 9, in <module>
    load_entry_point('cfncluster==1.4.0', 'console_scripts', 'cfncluster')()
  File "/Library/Python/2.7/site-packages/cfncluster/cli.py", line 142, in main
    args.func(args)
  File "/Library/Python/2.7/site-packages/cfncluster/cli.py", line 43, in update
    cfncluster.update(args)
  File "/Library/Python/2.7/site-packages/cfncluster/cfncluster.py", line 147, in update
    logger.debug((config.template_url, config.parameters))
NameError: global name 'logger' is not defined

Other than changing my master_instance_type, I haven't made any other changes to my config file. The only change is upgrading cfncluster from version 1.3.1 to 1.4.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions