lib/chef/knife/vcenter_datacenter_list.rb
# Sets up the columns for listing out and sorts by name
#
Sets up the columns for listing out and sorts by name
Sets up the columns for listing out and sorts by name
def before_exec_command
          @columns_with_info = [
            { label: "ID",    key: "datacenter" },
            { label: "Name",  key: "name" },
          ]
          @sort_by_field = "name"
        end
def before_exec_command @columns_with_info = [ { label : "ID" , key : "datacenter" } , { label : "Name" , key : "name" } , ] @sort_by_field = "name" end
Sets up the columns for listing out and sorts by name
Sets up the columns for listing out and sorts by name