(labels)
Validate executor_environment_variables
Validate executor_environment_variables
Validate executor_environment_variables
def validate_labels_executor_env_variables(labels):
    """Validate executor_environment_variables"""
    mesos_slave_executor_env_val = labels.get(
        'mesos_slave_executor_env_variables')
    try:
        jsonutils.loads(mesos_slave_executor_env_val)
    except ValueError:
        err = (_("Json format error"))
        raise exception.InvalidParameterValue(err)
def validate_labels_executor_env_variables ( labels ) : mesos_slave_executor_env_val = labels . get ( 'mesos_slave_executor_env_variables' ) try : jsonutils . loads ( mesos_slave_executor_env_val ) except ValueError : err = ( _ ( "Json format error" ) ) raise exception . InvalidParameterValue ( err )