File tree 2 files changed +4
-1
lines changed
2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -252,7 +252,8 @@ def update():
252
252
if os .path .exists (fname ):
253
253
# File exists, check the hashes
254
254
source_md5 = blob .properties .content_settings .content_md5
255
- local_md5 = base64 .b64encode (salt .utils .hashutils .get_hash (fname , 'md5' ).decode ('hex' ))
255
+ local_md5_hex = salt .utils .hashutils .get_hash (fname , 'md5' )
256
+ local_md5 = base64 .b64encode (bytes .fromhex (local_md5_hex ))
256
257
if local_md5 != source_md5 :
257
258
update = True
258
259
else :
Original file line number Diff line number Diff line change @@ -116,6 +116,8 @@ def update_payload(payload):
116
116
payload ['event' ] = dict ()
117
117
if isinstance (payload ['event' ], dict ):
118
118
payload ['event' ].update (std_info ())
119
+ if not payload .get ('host' ):
120
+ payload ['host' ] = get_fqdn ()
119
121
fields = index_extracted (payload )
120
122
if fields :
121
123
payload ['fields' ] = fields
You can’t perform that action at this time.
0 commit comments