def provider(module):
 func = ''
 for key in __salt__:
  if (not key.startswith('{0}.'.format(module))):
   continue
  func = key
  break
 if (not func):
  return ''
 pfn = sys.modules[__salt__[func].__module__].__file__
 pfn = os.path.basename(pfn)
 return pfn[:pfn.rindex('.')]

def provider ( module ) : func = '' for key in __salt__ : if ( not key . startswith ( '{0}.' . format ( module ) ) ) : continue func = key break if ( not func ) : return '' pfn = sys . modules [ __salt__ [ func ] . __module__ ] . __file__ pfn = os . path . basename ( pfn ) return pfn [ : pfn . rindex ( '.' ) ]
register the wrapped dependency provider under the specified name .