mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
use the new inherited mapper class
This commit is contained in:
parent
d93e81d0c6
commit
d3ca8a865a
@ -108,12 +108,10 @@ class SaltCloud(object):
|
||||
salt.log.set_logger_level(name, level)
|
||||
import logging
|
||||
# If statement here for when cloud query is added
|
||||
|
||||
import saltcloud.cloud
|
||||
if self.opts.get('names', False) 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 = saltcloud.cloud.Map(self.opts)
|
||||
mapper.run_map()
|
||||
|
Loading…
Reference in New Issue
Block a user