core/rails/app/models/barclamp_ipmi/ipmi_hammer.rb
# Gracefully power the node down.
# If there is an OS invokening on the node, it will be asked to
# power the node down.
Gracefully power the node down.
If there is an OS invokening on the node, it will be asked to
power the node down.
Gracefully power the node down . If there is an OS invokening on the node it will be asked to power the node down .
def halt
    Rails.logger.debug("IPMI: halt: start")
    return unless on?
    Rails.logger.debug("IPMI: halt: action")
    out,res = invoke("chassis power soft")
    Rails.logger.debug("IPMI: halt: result #{out}")
    node.update!(alive: false) if out.strip =~ /Soft$/
  end
def halt Rails . logger . debug ( "IPMI: halt: start" ) return unless on? Rails . logger . debug ( "IPMI: halt: action" ) out , res = invoke ( "chassis power soft" ) Rails . logger . debug ( "IPMI: halt: result #{out}" ) node . update! ( alive : false ) if out . strip =~ / Soft$ / end
Gracefully power the node down.
Gracefully power the node down .