X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=ext%2Faction_helpers%2Fpython%2Fkwilczynski%2Fecho.py;fp=ext%2Faction_helpers%2Fpython%2Fkwilczynski%2Fecho.py;h=bc22b635973c4e6eea082cf8dd57fa6a16f47af3;hb=b87d2f4e68281062df1913440ca5753ae63314a9;hp=0000000000000000000000000000000000000000;hpb=ab0ea530b8ac956091f17b104ab2311336cfc250;p=packages%2Fprecise%2Fmcollective.git diff --git a/ext/action_helpers/python/kwilczynski/echo.py b/ext/action_helpers/python/kwilczynski/echo.py new file mode 100644 index 0000000..bc22b63 --- /dev/null +++ b/ext/action_helpers/python/kwilczynski/echo.py @@ -0,0 +1,16 @@ +#!/usr/bin/env python + +import sys +import time +import mcollective_action as mc + +if __name__ == '__main__': + mc = mc.MCollectiveAction() + request = mc.request() + mc.message = request['data']['message'] + mc.time = time.strftime('%c') + mc.info("An example echo agent") + + sys.exit(0) + +# vim: set ts=4 sw=4 et :