lib/chef/knife/vcenter_vm_create.rb
def validate_params!
          super

          if @name_args.empty?
            ui.error("You must provide the name of the new machine")
          end

          check_for_missing_config_values!(:targethost, :datastore, :folder)
        end
# Validates the parameters, you need that unique name person!
#
Validates the parameters, you need that unique name person!
Validates the parameters you need that unique name person!
def validate_params!
          super
          if @name_args.empty?
            ui.error("You must provide the name of the new machine")
          end
          check_for_missing_config_values!(:targethost, :datastore, :folder)
        end
def validate_params! super if @name_args . empty? ui . error ( "You must provide the name of the new machine" ) end check_for_missing_config_values! ( :targethost , :datastore , :folder ) end
Validates the parameters, you need that unique name person!
Validates the parameters you need that unique name person!