negate the need to pass in alternative base_path args

This fixes using built in salt apis
This commit is contained in:
Thomas S Hatch 2012-10-08 16:17:55 -06:00
parent 926fab516f
commit 905a110345

View File

@ -8,13 +8,17 @@ import os
import salt.loader
import saltapi
salt.loader.salt_base_path = os.path.dirname(saltapi.__file__)
def netapi(opts):
'''
Return the network api functions
'''
load = salt.loader._create_loader(opts, 'netapi', 'netapi')
load = salt.loader._create_loader(
opts,
'netapi',
'netapi',
base_path=os.path.dirname(saltapi.__file__)
)
return load.gen_functions()
def runner(opts):