methods/ld_client.rb
# Check Guest Domain isn't running
Check Guest Domain isn't running
Check Guest Domain isn ' t running
def check_gdom_isnt_running(options)
  message = "Information:\tChecking Guest Domain "+options['name']+" is running"
  command = "ldm list-bindings #{options['name']} |grep '^#{options['name']}'"
  output  = execute_command(options,message,command)
  if output.match(/active/)
    handle_output(options,"Warning:\tGuest Domain #{options['name']} is already running")
    quit(options)
  end
  return
end
def check_gdom_isnt_running ( options ) message = "Information:\tChecking Guest Domain " + options [ 'name' ] + " is running" command = "ldm list-bindings #{options['name']} |grep '^#{options['name']}'" output = execute_command ( options , message , command ) if output . match ( / active / ) handle_output ( options , "Warning:\tGuest Domain #{options['name']} is already running" ) quit ( options ) end return end
Check Guest Domain isn't running
Check Guest Domain isn ' t running
options
<not_specific>