Skip to content

Commit

Permalink
Update -z with -a as -z already used for local-mode
Browse files Browse the repository at this point in the history
 - Fix server list error when format is json.

Signed-off-by: Vivek Singh <[email protected]>
  • Loading branch information
Vivek Singh committed Jun 14, 2019
1 parent effa1b4 commit c07e819
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/chef/knife/ec2_server_list.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class Ec2ServerList < Knife
description: "Show the iam profile"

option :az,
short: "-z",
short: "-a",
long: "--availability-zone",
boolean: true,
default: false,
Expand Down Expand Up @@ -147,8 +147,7 @@ def run
end
puts ui.list(servers_list, :uneven_columns_across, output_column_count)
else
servers = ec2_connection.servers
output(format_for_display(servers))
output(format_for_display(server_hashes))
end
end

Expand Down

0 comments on commit c07e819

Please sign in to comment.