(cluster_uuid)
Validate Federation `hostcluster_id` parameter.

    If the parameter was not specified raise an
    `exceptions.InvalidParameterValue`. If the specified identifier does not
    identify any Cluster, raise `exception.ClusterNotFound`
Validate Federation `hostcluster_id` parameter.
Validate Federation hostcluster_id parameter .
def validate_federation_hostcluster(cluster_uuid):
    """Validate Federation `hostcluster_id` parameter.

    If the parameter was not specified raise an
    `exceptions.InvalidParameterValue`. If the specified identifier does not
    identify any Cluster, raise `exception.ClusterNotFound`
    """
    if cluster_uuid is not None:
        api_utils.get_resource('Cluster', cluster_uuid)
    else:
        raise exception.InvalidParameterValue(
            "No hostcluster specified. "
            "Please specify a hostcluster_id.")
def validate_federation_hostcluster ( cluster_uuid ) : if cluster_uuid is not None : api_utils . get_resource ( 'Cluster' , cluster_uuid ) else : raise exception . InvalidParameterValue ( "No hostcluster specified. " "Please specify a hostcluster_id." )