fix typo in edit_config_capability name (#44102)

pull/44106/head
Lindsay Hill 6 years ago committed by Trishna Guha
parent 21066410be
commit 727503c5ab

@ -402,7 +402,7 @@ class CliconfBase(AnsiblePlugin):
""" """
pass 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: if not candidate and not replace:
raise ValueError("must provide a candidate or replace to load configuration") raise ValueError("must provide a candidate or replace to load configuration")

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

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

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

@ -90,7 +90,7 @@ class Cliconf(CliconfBase):
def edit_config(self, candidate=None, commit=True, replace=None, comment=None): def edit_config(self, candidate=None, commit=True, replace=None, comment=None):
operations = self.get_device_operations() 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 = {} resp = {}
results = [] results = []

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

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

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

@ -79,7 +79,7 @@ class HttpApi(HttpApiBase):
resp = list() resp = list()
operations = self.connection.get_device_operations() 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: if replace:
device_info = self.connection.get_device_info() device_info = self.connection.get_device_info()

Loading…
Cancel
Save