lib/chef/knife/vcenter_cluster_list.rb
def before_exec_command
          @columns_with_info = [
            { label: "ID",    key: "cluster" },
            { label: "Name",  key: "name" },
            { label: "DRS?", key: "drs_enabled", value_callback: method(:format_boolean) },
            { label: "HA?", key: "ha_enabled", value_callback: method(:format_boolean) },
          ]

          @sort_by_field = "name"
        end
# Creates the columns and how to sort the columns
#
Creates the columns and how to sort the columns
Creates the columns and how to sort the columns
def before_exec_command
          @columns_with_info = [
            { label: "ID",    key: "cluster" },
            { label: "Name",  key: "name" },
            { label: "DRS?", key: "drs_enabled", value_callback: method(:format_boolean) },
            { label: "HA?", key: "ha_enabled", value_callback: method(:format_boolean) },
          ]
          @sort_by_field = "name"
        end
def before_exec_command @columns_with_info = [ { label : "ID" , key : "cluster" } , { label : "Name" , key : "name" } , { label : "DRS?" , key : "drs_enabled" , value_callback : method ( :format_boolean ) } , { label : "HA?" , key : "ha_enabled" , value_callback : method ( :format_boolean ) } , ] @sort_by_field = "name" end
Creates the columns and how to sort the columns
Creates the columns and how to sort the columns