def main():
    module = FabricAnsibleModule(argument_spec=dict(authtoken=dict(required=True), authurl=dict(required=True), user=dict(required=True), key=dict(required=True), tenant_name=dict(required=False, default='admin'), auth_version=dict(required=False, default='3.0'), temp_url_key=dict(required=True), temp_url_key_2=dict(required=True), chosen_temp_url_key=dict(required=False, default='temp_url_key'), container_name=dict(required=True), filename=dict(required=True), connection_retry_count=dict(required=False, default=5, type='int')), supports_check_mode=False)
    m_args = module.params
    authtoken = m_args['authtoken']
    authurl = m_args['authurl']
    user = m_args['user']
    key = m_args['key']
    tenant_name = m_args['tenant_name']
    auth_version = m_args['auth_version']
    temp_url_key = m_args['temp_url_key']
    temp_url_key_2 = m_args['temp_url_key_2']
    chosen_temp_url_key = m_args['chosen_temp_url_key']
    container_name = m_args['container_name']
    filename = m_args['filename']
    connection_retry_count = m_args['connection_retry_count']
    url = None
    error_msg = ''
    try:
        fileutil = FileSvcUtil(authtoken, authurl, user, key, tenant_name, auth_version, container_name, temp_url_key, temp_url_key_2, connection_retry_count, chosen_temp_url_key)
        url = fileutil.getObjUrl(filename)
        fileutil.close()
    except Exception as e:
        error_msg = ('Exception occurred in swift_fileutil: ' + str(e))
    results = {}
    results['url'] = url
    results['error_msg'] = error_msg
    module.exit_json(**results)
def main():
    module = FabricAnsibleModule(argument_spec=dict(authtoken=dict(required=True), authurl=dict(required=True), user=dict(required=True), key=dict(required=True), tenant_name=dict(required=False, default='admin'), auth_version=dict(required=False, default='3.0'), temp_url_key=dict(required=True), temp_url_key_2=dict(required=True), chosen_temp_url_key=dict(required=False, default='temp_url_key'), container_name=dict(required=True), filename=dict(required=True), connection_retry_count=dict(required=False, default=5, type='int')), supports_check_mode=False)
    m_args = module.params
    authtoken = m_args['authtoken']
    authurl = m_args['authurl']
    user = m_args['user']
    key = m_args['key']
    tenant_name = m_args['tenant_name']
    auth_version = m_args['auth_version']
    temp_url_key = m_args['temp_url_key']
    temp_url_key_2 = m_args['temp_url_key_2']
    chosen_temp_url_key = m_args['chosen_temp_url_key']
    container_name = m_args['container_name']
    filename = m_args['filename']
    connection_retry_count = m_args['connection_retry_count']
    url = None
    error_msg = 
    try:
        fileutil = FileSvcUtil(authtoken, authurl, user, key, tenant_name, auth_version, container_name, temp_url_key, temp_url_key_2, connection_retry_count, chosen_temp_url_key)
        url = fileutil.getObjUrl(filename)
        fileutil.close()
    except Exception as e:
        error_msg = ('Exception occurred in swift_fileutil: ' + str(e))
    results = {}
    results['url'] = url
    results['error_msg'] = error_msg
    module.exit_json(**results)