server/lib/ec2/query_parser.rb
# Some drivers, like RHEV-M does not return the instance object
# but just notify client that the action was executed successfully.
#
# If we not received an Instance object, then we need to do additional
# query.
#
Some drivers, like RHEV-M does not return the instance object
but just notify client that the action was executed successfully.

If we not received an Instance object, then we need to do additional
query.
Some drivers like RHEV - M does not return the instance object but just notify client that the action was executed successfully . If we not received an Instance object then we need to do additional query .
def instance_action(driver, action, credentials, id)
      instance = driver.send(action, credentials, id)
      if instance.kind_of? Instance
        instance
      else
        driver.instance(credentials, :id => id)
      end
    end
def instance_action ( driver , action , credentials , id ) instance = driver . send ( action , credentials , id ) if instance . kind_of? Instance instance else driver . instance ( credentials , :id => id ) end end
Some drivers, like RHEV-M does not return the instance object
but just notify client that the action was executed successfully.
Some drivers like RHEV - M does not return the instance object but just notify client that the action was executed successfully .
driver
<not_specific>
action
<not_specific>
credentials
<not_specific>
id
<not_specific>