1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Typo in edit_banner (#43668)

Looks like `send_commad` was mistakenly added in https://github.com/ansible/ansible/pull/43203. Should be `send_command`
This commit is contained in:
Lindsay Hill 2018-08-05 21:42:26 -07:00 committed by Trishna Guha
parent 35adc12c38
commit c325fd9a46

View file

@ -231,13 +231,13 @@ class Cliconf(CliconfBase):
if commit:
for key, value in iteritems(banners_obj):
key += ' %s' % multiline_delimiter
self.send_commad('config terminal', sendonly=True)
self.send_command('config terminal', sendonly=True)
for cmd in [key, value, multiline_delimiter]:
obj = {'command': cmd, 'sendonly': True}
results.append(self.send_command(**obj))
requests.append(cmd)
self.send_commad('end', sendonly=True)
self.send_command('end', sendonly=True)
time.sleep(0.1)
results.append(self.send_command('\n'))
requests.append('\n')