Skip to content

Issue with ID field in .claws.yml causing claws -d to return the object ID for the object and not the instance ID #4

@jamiejamison

Description

@jamiejamison

When I run

claws -d

I get one of these error message per instance:

/home/jamie/.rvm/gems/ruby-1.8.7-p302@jamie/gems/claws-1.1.0/lib/claws/report/ec2.rb:44: warning: Object#id will be deprecated; use Object#object_id

Looking at the claws output from run to run the value for ID changes and is not an EC2 instance ID, which is of the form i-12345678 but is instead a Ruby object ID. Editing .claws.yml and changing the id field from

id:
  title: ID
  width: 10

to

instance_id:
  title: ID
  width: 10

Fixes the problem.

The documentation for amazon-sdk indicates that the instance ID can be accessed via "#id" or "#instance_id".

Thanks,

Jamie

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions