Adding some quick documention about why we are setting ret=True following the channel.send.

This commit is contained in:
Gareth J. Greenaway 2018-07-13 15:42:12 -07:00
parent bf78f4b188
commit fab25af1a9
No known key found for this signature in database
GPG key ID: 10B62F8A7CAD7A41

View file

@ -84,6 +84,8 @@ def fire_master(data, tag, preload=None):
channel = salt.transport.Channel.factory(__opts__, master_uri=master)
try:
channel.send(load)
# channel.send was successful.
# Ensure ret is True.
ret = True
except Exception:
ret = False