mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
17 lines
342 B
Python
17 lines
342 B
Python
'''
|
|
The salt cloud module loader interface
|
|
'''
|
|
# Import python libs
|
|
import os
|
|
|
|
# Import Salt libs
|
|
import salt.loader
|
|
import saltcloud
|
|
|
|
def clouds(opts):
|
|
'''
|
|
Return the cloud functions
|
|
'''
|
|
load = salt.loader._create_loader(opts, 'clouds', 'cloud', base_path=os.path.dirname(saltcloud.__file__))
|
|
return load.gen_functions()
|