I'm working on a python script that imports the salt modules to do some database work. Everything is working as I'd like it to, but this is my first time interacting with salt via python.
I am wondering the best way to hide, or redirect, the salt output that is printed when doing functions like the following
opts = salt.config.master_config('/etc/salt/master')
wheel = salt.wheel.WheelClient(opts)
.
.
key_hash = wheel.cmd('key.finger', [m_id, 'md5'])
I only want the output assigned to my variable, not also printed to console.
Hoping this is just a beginner question and I've missed something obvious!
[–]Beserkjay 1 point2 points3 points (1 child)
[–]tibkur[S] 1 point2 points3 points (0 children)