Skip to content

Commit 7097cfd

Browse files
committed
Merge pull request saltstack#18770 from basepi/publish-prevent-fulldata
[2014.7] Prevent all `publish.` calls from publish calls
2 parents 00bf5da + 0074842 commit 7097cfd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

salt/modules/publish.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ def _publish(
5151
5252
salt system.example.com publish.publish '*' cmd.run 'ls -la /tmp'
5353
'''
54-
if fun == 'publish.publish':
55-
log.info('Function name is \'publish.publish\'. Returning {}')
54+
if fun.startswith('publish.'):
55+
log.info('Cannot publish publish calls. Returning {}')
5656
return {}
5757

5858
arg = [salt.utils.args.yamlify_arg(arg)]

0 commit comments

Comments
 (0)