(properties)
Validate Federation `properties` parameter.
Validate Federation `properties` parameter.
Validate Federation properties parameter .
def validate_federation_properties(properties):
    """Validate Federation `properties` parameter."""
    if properties is None:
        raise exception.InvalidParameterValue(
            "Please specify a `properties` "
            "dict for the federation.")
    # Currently, we only support the property `dns-zone`.
    if properties.get('dns-zone') is None:
        raise exception.InvalidParameterValue("No DNS zone specified. "
                                              "Please specify a `dns-zone`.")
def validate_federation_properties ( properties ) : if properties is None : raise exception . InvalidParameterValue ( "Please specify a `properties` " "dict for the federation." ) # Currently, we only support the property `dns-zone`. if properties . get ( 'dns-zone' ) is None : raise exception . InvalidParameterValue ( "No DNS zone specified. " "Please specify a `dns-zone`." )