Skip to content

Commit

Permalink
Fix for: undefined method downcase for nil:NilClass
Browse files Browse the repository at this point in the history
Signed-off-by: Kapil Chouhan <kapil.chouhan@msystechnologies.com>
  • Loading branch information
Kapil Chouhan committed Jul 20, 2020
1 parent 04bdd32 commit 6f87f60
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion knife-vrealize.gemspec
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# coding: utf-8
# frozen_string_literal: true

lib = File.expand_path("../lib", __FILE__)
Expand Down
2 changes: 2 additions & 0 deletions lib/chef/knife/vra_catalog_list.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ def query_resource
end

def format_status_value(status)
return "-" if status.nil?

status = status.downcase
color = if status == "published"
:green
Expand Down

0 comments on commit 6f87f60

Please sign in to comment.