summaryrefslogtreecommitdiff
path: root/lib/ansible/plugins
diff options
context:
space:
mode:
authorAbhijeet Kasurde <akasurde@redhat.com>2018-11-30 11:50:00 +0530
committerGitHub <noreply@github.com>2018-11-30 11:50:00 +0530
commit3141fda6b430fa520249466a1bc740ecdb594d37 (patch)
tree14871f3105f4c963cd3d11c46e9d8310e6fe33db /lib/ansible/plugins
parentbe28794dfcf939fe351bd202f2116849bc6eb01a (diff)
downloadansible-3141fda6b430fa520249466a1bc740ecdb594d37.tar.gz
Misc typos in ce action plugin (#49348)
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
Diffstat (limited to 'lib/ansible/plugins')
-rw-r--r--lib/ansible/plugins/action/ce.py25
1 files changed, 6 insertions, 19 deletions
diff --git a/lib/ansible/plugins/action/ce.py b/lib/ansible/plugins/action/ce.py
index fa5653bc61..e289441934 100644
--- a/lib/ansible/plugins/action/ce.py
+++ b/lib/ansible/plugins/action/ce.py
@@ -1,21 +1,8 @@
#
-# (c) 2016 Red Hat Inc.
-#
-# This file is part of Ansible
-#
-# Ansible is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# Ansible is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
-#
+# Copyright: (c) 2016, Red Hat Inc.
+
+# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
+
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
@@ -83,7 +70,7 @@ class ActionModule(_ActionModule):
elif self._play_context.connection in ('netconf', 'network_cli'):
provider = self._task.args.get('provider', {})
if any(provider.values()):
- display.warning('provider is unnessary whene using %s and will be ignored' % self._play_context.connection)
+ display.warning('provider is unnecessary when using %s and will be ignored' % self._play_context.connection)
del self._task.args['provider']
if (self._play_context.connection == 'network_cli' and self._task.action not in CLI_SUPPORTED_MODULES) or \
@@ -93,7 +80,7 @@ class ActionModule(_ActionModule):
if (self._play_context.connection == 'local' and transport == 'cli' and self._task.action in CLI_SUPPORTED_MODULES) \
or self._play_context.connection == 'network_cli':
- # make sure we are in the right cli context whitch should be
+ # make sure we are in the right cli context which should be
# enable mode and not config module
if socket_path is None:
socket_path = self._connection.socket_path