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

Fix argument error for --platform option #609

Conversation

dheerajd-msys
Copy link
Contributor

@dheerajd-msys dheerajd-msys commented Sep 9, 2019

Signed-off-by: dheerajd-msys dheeraj.dubey@msystechnologies.com

Description

  • knife ec2 ami list --platform returns ERROR: ArgumentError: unexpected value at params["filters"][0][:platform]
  • Handles the error by passing appropriate content to filter array

Issues Resolved

Fixes #607

Output Post Fix

PS E:\Backup\Project\Chef_Repo\knife-ec2> bundle exec knife ec2 ami list --platform windows -c 'E:\Backup\Project\chef-starter\chef-repo\.chef\knife.rb' --owner microsoft
AMI ID        Platform  Architecture  Size  Name            Description
ami-c4169af4  windows   x86_64        35    Windows_Server
ami-c6169af6  windows   x86_64        35    Windows_Server
ami-c8169af8  windows   x86_64        30    Windows_Server
ami-c827b8f8  windows   x86_64        30    AWS             aws dc

Check List

Signed-off-by: dheerajd-msys <dheeraj.dubey@msystechnologies.com>
@Vasu1105
Copy link

LGTM

Copy link

@PrajaktaPurohit PrajaktaPurohit left a comment

Choose a reason for hiding this comment

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

LGTM!

@lamont-granquist lamont-granquist merged commit 18b1c2a into chef:master Sep 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

knife ec2 ami list displays unexpected value at params["filters"][0][:platform] (ArgumentError)
4 participants