def _get_instance_info():
 identity = boto.utils.get_instance_identity()['document']
 return (identity['instanceId'], identity['region'])

def _get_instance_info ( ) : identity = boto . utils . get_instance_identity ( ) [ 'document' ] return ( identity [ 'instanceId' ] , identity [ 'region' ] )
helper function to return the instance id and region of the master where this pillar is run .