Ensures a object is presnt.

    :param container: Container name
    :type  container: ``str``

    :param name: Object name in cloud
    :type  name: ``str``

    :param path: Local path to file
    :type  path: ``str``

    :param profile: The profile key
    :type  profile: ``str``

def object_present(container, name, path, profile):
    '''
    Ensures a object is presnt.

    :param container: Container name
    :type  container: ``str``

    :param name: Object name in cloud
    :type  name: ``str``

    :param path: Local path to file
    :type  path: ``str``

    :param profile: The profile key
    :type  profile: ``str``
    '''
    existing_object = __salt__['libcloud_storage.get_container_object'](container, name, profile)
    if existing_object is not None:
        return state_result(True, "Object already present", name, {})
    else:
        result = __salt__['libcloud_storage.upload_object'](path, container, name, profile)
        return state_result(result, "Uploaded object", name, {})