mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
update cli to manage direct execution of profile and map
This commit is contained in:
parent
65a1a9679c
commit
43f611e690
@ -108,7 +108,12 @@ class SaltCloud(object):
|
||||
salt.log.set_logger_level(name, level)
|
||||
import logging
|
||||
# If statement here for when cloud query is added
|
||||
import saltcloud
|
||||
cloud = saltcloud.Cloud(self.opts)
|
||||
cloud.run()
|
||||
|
||||
if self.opts['names'] and self.opts['profile']:
|
||||
import saltcloud.cloud
|
||||
cloud = saltcloud.cloud.Cloud(self.opts)
|
||||
cloud.run_profile()
|
||||
elif self.opts['map']:
|
||||
import saltcloud.mapper
|
||||
mapper = saltcloud.mapper.Map(self.opts)
|
||||
mapper.run_map()
|
||||
|
Loading…
Reference in New Issue
Block a user