methods/ld_client.rb
# Check Guest domain doesn't exist
Check Guest domain doesn't exist
Check Guest domain doesn ' t exist
def check_gdom_exists(options)
  message = "Information:\tChecking guest domain "+options['name']+" exist"
  command = "ldm list |grep #{options['name']}"
  output  = execute_command(options,message,command)
  if not output.match(/#{options['name']}/)
    handle_output(options,"Warning:\tGuest domain #{options['name']} doesn't exist")
    quit(options)
  end
  return
end
def check_gdom_exists ( options ) message = "Information:\tChecking guest domain " + options [ 'name' ] + " exist" command = "ldm list |grep #{options['name']}" output = execute_command ( options , message , command ) if not output . match ( / #{ options [ 'name' ] } / ) handle_output ( options , "Warning:\tGuest domain #{options['name']} doesn't exist" ) quit ( options ) end return end
Check Guest domain doesn't exist
Check Guest domain doesn ' t exist
options
<not_specific>