def get_instance_path(instance, forceold=False):
 pre_grizzly_name = os.path.join(CONF.instances_path, instance['name'])
 if (forceold or os.path.exists(pre_grizzly_name)):
  return pre_grizzly_name
 return os.path.join(CONF.instances_path, instance['uuid'])

def get_instance_path ( instance , forceold = False ) : pre_grizzly_name = os . path . join ( CONF . instances_path , instance [ 'name' ] ) if ( forceold or os . path . exists ( pre_grizzly_name ) ) : return pre_grizzly_name return os . path . join ( CONF . instances_path , instance [ 'uuid' ] )
determine the correct path for instance storage .