def _get_key(key, keyid, service_url, verify_ssl, kms_keyid, location, role_arn, path_style, https_enable):
 if ((not key) and __salt__['config.option']('s3.key')):
  key = __salt__['config.option']('s3.key')
 if ((not keyid) and __salt__['config.option']('s3.keyid')):
  keyid = __salt__['config.option']('s3.keyid')
 if ((not kms_keyid) and __salt__['config.option']('aws.kms.keyid')):
  kms_keyid = __salt__['config.option']('aws.kms.keyid')
 if ((not service_url) and __salt__['config.option']('s3.service_url')):
  service_url = __salt__['config.option']('s3.service_url')
 if (not service_url):
  service_url = 's3.amazonaws.com'
 if ((verify_ssl is None) and (__salt__['config.option']('s3.verify_ssl') is not None)):
  verify_ssl = __salt__['config.option']('s3.verify_ssl')
 if (verify_ssl is None):
  verify_ssl = True
 if ((location is None) and (__salt__['config.option']('s3.location') is not None)):
  location = __salt__['config.option']('s3.location')
 if ((role_arn is None) and __salt__['config.option']('s3.role_arn')):
  role_arn = __salt__['config.option']('s3.role_arn')
 if ((path_style is None) and (__salt__['config.option']('s3.path_style') is not None)):
  path_style = __salt__['config.option']('s3.path_style')
 if (path_style is None):
  path_style = False
 if ((https_enable is None) and (__salt__['config.option']('s3.https_enable') is not None)):
  https_enable = __salt__['config.option']('s3.https_enable')
 if (https_enable is None):
  https_enable = True
 return (key, keyid, service_url, verify_ssl, kms_keyid, location, role_arn, path_style, https_enable)

def _get_key ( key , keyid , service_url , verify_ssl , kms_keyid , location , role_arn , path_style , https_enable ) : if ( ( not key ) and __salt__ [ 'config.option' ] ( 's3.key' ) ) : key = __salt__ [ 'config.option' ] ( 's3.key' ) if ( ( not keyid ) and __salt__ [ 'config.option' ] ( 's3.keyid' ) ) : keyid = __salt__ [ 'config.option' ] ( 's3.keyid' ) if ( ( not kms_keyid ) and __salt__ [ 'config.option' ] ( 'aws.kms.keyid' ) ) : kms_keyid = __salt__ [ 'config.option' ] ( 'aws.kms.keyid' ) if ( ( not service_url ) and __salt__ [ 'config.option' ] ( 's3.service_url' ) ) : service_url = __salt__ [ 'config.option' ] ( 's3.service_url' ) if ( not service_url ) : service_url = 's3.amazonaws.com' if ( ( verify_ssl is None ) and ( __salt__ [ 'config.option' ] ( 's3.verify_ssl' ) is not None ) ) : verify_ssl = __salt__ [ 'config.option' ] ( 's3.verify_ssl' ) if ( verify_ssl is None ) : verify_ssl = True if ( ( location is None ) and ( __salt__ [ 'config.option' ] ( 's3.location' ) is not None ) ) : location = __salt__ [ 'config.option' ] ( 's3.location' ) if ( ( role_arn is None ) and __salt__ [ 'config.option' ] ( 's3.role_arn' ) ) : role_arn = __salt__ [ 'config.option' ] ( 's3.role_arn' ) if ( ( path_style is None ) and ( __salt__ [ 'config.option' ] ( 's3.path_style' ) is not None ) ) : path_style = __salt__ [ 'config.option' ] ( 's3.path_style' ) if ( path_style is None ) : path_style = False if ( ( https_enable is None ) and ( __salt__ [ 'config.option' ] ( 's3.https_enable' ) is not None ) ) : https_enable = __salt__ [ 'config.option' ] ( 's3.https_enable' ) if ( https_enable is None ) : https_enable = True return ( key , keyid , service_url , verify_ssl , kms_keyid , location , role_arn , path_style , https_enable )
calculate the cache key .