def _node_is_booting(instance):
 try:
  instance.update()
 except EC2ResponseError as e:
  _check_response_error(e, u'flocker:provision:aws:node_is_booting:retry')
 Message.new(message_type=u'flocker:provision:aws:node_is_booting:update', instance_state=instance.state, ip_address=instance.ip_address).write()
 return ((instance.state == u'pending') or (instance.state == u'rebooting') or ((instance.state == u'running') and (instance.ip_address is None)))

def _node_is_booting ( instance ) : try : instance . update ( ) except EC2ResponseError as e : _check_response_error ( e , u'flocker:provision:aws:node_is_booting:retry' ) Message . new ( message_type = u'flocker:provision:aws:node_is_booting:update' , instance_state = instance . state , ip_address = instance . ip_address ) . write ( ) return ( ( instance . state == u'pending' ) or ( instance . state == u'rebooting' ) or ( ( instance . state == u'running' ) and ( instance . ip_address is None ) ) )
check if an instance is still booting .