mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
negate the need to pass in alternative base_path args
This fixes using built in salt apis
This commit is contained in:
parent
926fab516f
commit
905a110345
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user