.. versionadded:: Fluorine

    Ensure that property is set to specific value

    host
        The chassis host.

    admin_username
        The username used to access the chassis.

    admin_password
        The password used to access the chassis.

    property:
        The property which should be set.

    value:
        The value which should be set to property.

    CLI Example:

    .. code-block:: bash

        salt dell dracr.ensure_property_set property=System.ServerOS.HostName value=Pretty-server

def ensure_property_set(host=None, admin_username=None, admin_password=None, property=None, value=None):
    '''
    .. versionadded:: Fluorine

    Ensure that property is set to specific value

    host
        The chassis host.

    admin_username
        The username used to access the chassis.

    admin_password
        The password used to access the chassis.

    property:
        The property which should be set.

    value:
        The value which should be set to property.

    CLI Example:

    .. code-block:: bash

        salt dell dracr.ensure_property_set property=System.ServerOS.HostName value=Pretty-server
    '''
    ret = get_property(host, admin_username, admin_password, property)
    if ret['stdout'] == value:
        return True

    ret = set_property(host, admin_username, admin_password, property, value)
    return ret