mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Make sure output file works for salt cloud
This commit is contained in:
parent
654cab0314
commit
16e1df90e9
@ -81,10 +81,9 @@ class SaltCloud(parsers.SaltCloudParser):
|
||||
|
||||
if self.options.update_bootstrap:
|
||||
ret = salt.utils.cloud.update_bootstrap(self.config)
|
||||
display_output = salt.output.get_printout(
|
||||
self.options.output, self.config
|
||||
)
|
||||
print(display_output(ret))
|
||||
salt.output.display_output(ret,
|
||||
self.options.output,
|
||||
opts=self.config)
|
||||
self.exit(salt.defaults.exitcodes.EX_OK)
|
||||
|
||||
log.info('salt-cloud starting')
|
||||
@ -357,11 +356,9 @@ class SaltCloud(parsers.SaltCloudParser):
|
||||
else:
|
||||
self.error('Nothing was done. Using the proper arguments?')
|
||||
|
||||
display_output = salt.output.get_printout(
|
||||
self.options.output, self.config
|
||||
)
|
||||
# display output using salt's outputter system
|
||||
print(display_output(ret))
|
||||
salt.output.display_output(ret,
|
||||
self.options.output,
|
||||
opts=self.config)
|
||||
self.exit(salt.defaults.exitcodes.EX_OK)
|
||||
|
||||
def print_confirm(self, msg):
|
||||
|
Loading…
Reference in New Issue
Block a user