fix typo in edit_config_capability name (#44102)

This commit is contained in:
Lindsay Hill 2018-08-13 20:47:50 -07:00 committed by Trishna Guha
parent 21066410be
commit 727503c5ab
9 changed files with 9 additions and 9 deletions

View file

@ -402,7 +402,7 @@ class CliconfBase(AnsiblePlugin):
"""
pass
def check_edit_config_capabiltiy(self, operations, candidate=None, commit=True, replace=None, comment=None):
def check_edit_config_capability(self, operations, candidate=None, commit=True, replace=None, comment=None):
if not candidate and not replace:
raise ValueError("must provide a candidate or replace to load configuration")

View file

@ -96,7 +96,7 @@ class Cliconf(CliconfBase):
def edit_config(self, candidate=None, commit=True, replace=None, comment=None):
operations = self.get_device_operations()
self.check_edit_config_capabiltiy(operations, candidate, commit, replace, comment)
self.check_edit_config_capability(operations, candidate, commit, replace, comment)
if (commit is False) and (not self.supports_sessions):
raise ValueError('check mode is not supported without configuration session')

View file

@ -128,7 +128,7 @@ class Cliconf(CliconfBase):
def edit_config(self, candidate=None, commit=True, replace=None, comment=None):
resp = {}
operations = self.get_device_operations()
self.check_edit_config_capabiltiy(operations, candidate, commit, replace, comment)
self.check_edit_config_capability(operations, candidate, commit, replace, comment)
results = []
requests = []

View file

@ -85,7 +85,7 @@ class Cliconf(CliconfBase):
def edit_config(self, candidate=None, commit=True, admin=False, replace=None, comment=None, label=None):
operations = self.get_device_operations()
self.check_edit_config_capabiltiy(operations, candidate, commit, replace, comment)
self.check_edit_config_capability(operations, candidate, commit, replace, comment)
resp = {}
results = []

View file

@ -90,7 +90,7 @@ class Cliconf(CliconfBase):
def edit_config(self, candidate=None, commit=True, replace=None, comment=None):
operations = self.get_device_operations()
self.check_edit_config_capabiltiy(operations, candidate, commit, replace, comment)
self.check_edit_config_capability(operations, candidate, commit, replace, comment)
resp = {}
results = []

View file

@ -151,7 +151,7 @@ class Cliconf(CliconfBase):
def edit_config(self, candidate=None, commit=True, replace=None, comment=None):
resp = {}
operations = self.get_device_operations()
self.check_edit_config_capabiltiy(operations, candidate, commit, replace, comment)
self.check_edit_config_capability(operations, candidate, commit, replace, comment)
results = []
requests = []

View file

@ -119,7 +119,7 @@ class Cliconf(CliconfBase):
def edit_config(self, candidate=None, commit=True, replace=None, comment=None):
resp = {}
operations = self.get_device_operations()
self.check_edit_config_capabiltiy(operations, candidate, commit, replace, comment)
self.check_edit_config_capability(operations, candidate, commit, replace, comment)
results = []
requests = []

View file

@ -69,7 +69,7 @@ class Cliconf(CliconfBase):
def edit_config(self, candidate=None, commit=True, replace=None, comment=None):
resp = {}
operations = self.get_device_operations()
self.check_edit_config_capabiltiy(operations, candidate, commit, replace, comment)
self.check_edit_config_capability(operations, candidate, commit, replace, comment)
results = []
requests = []

View file

@ -79,7 +79,7 @@ class HttpApi(HttpApiBase):
resp = list()
operations = self.connection.get_device_operations()
self.connection.check_edit_config_capabiltiy(operations, candidate, commit, replace, comment)
self.connection.check_edit_config_capability(operations, candidate, commit, replace, comment)
if replace:
device_info = self.connection.get_device_info()