/lib/ansible/plugins/action/exos_config.py

https://github.com/debfx/ansible · Python · 31 lines · 8 code · 5 blank · 18 comment · 0 complexity · 3c87360c5ca9fba95d42d7a2935c0c90 MD5 · raw file

  1. #
  2. # Copyright 2015 Peter Sprygada <psprygada@ansible.com>
  3. #
  4. # This file is part of Ansible
  5. #
  6. # Ansible is free software: you can redistribute it and/or modify
  7. # it under the terms of the GNU General Public License as published by
  8. # the Free Software Foundation, either version 3 of the License, or
  9. # (at your option) any later version.
  10. #
  11. # Ansible is distributed in the hope that it will be useful,
  12. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. # GNU General Public License for more details.
  15. #
  16. # You should have received a copy of the GNU General Public License
  17. # along with Ansible. If not, see <http://www.gnu.org/licenses/>.
  18. #
  19. from __future__ import (absolute_import, division, print_function)
  20. __metaclass__ = type
  21. from ansible.plugins.action.network import ActionModule as ActionNetworkModule
  22. class ActionModule(ActionNetworkModule):
  23. def run(self, tmp=None, task_vars=None):
  24. del tmp # tmp no longer has any effect
  25. self._config_module = True
  26. return super(ActionModule, self).run(task_vars=task_vars)