Skip to content

Commit c7f85a9

Browse files
Merge pull request #49 from gavinelder/version_header
Add basic header for sal-scripts version.
2 parents e759d26 + 7893324 commit c7f85a9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

payload/usr/local/sal/utils.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,9 @@ def curl(url, data=None, json_path=None):
170170
max_time = '8' if data else '4'
171171
cmd += ['--max-time', max_time]
172172

173+
if VERSION:
174+
cmd += ['--header', 'SalScript-Version: %s' % VERSION]
175+
173176
if data:
174177
cmd += ['--data', data]
175178
elif json_path:

0 commit comments

Comments
 (0)