diff --git a/lib/ansible/module_utils/nxos.py b/lib/ansible/module_utils/nxos.py index 298c8e0cdc..86918f7004 100644 --- a/lib/ansible/module_utils/nxos.py +++ b/lib/ansible/module_utils/nxos.py @@ -60,7 +60,10 @@ class NxapiConfigMixin(object): self.execute(['no checkpoint %s' % checkpoint]) def save_config(self, **kwargs): - self.execute(['copy running-config startup-config']) + try: + self.execute(['copy running-config startup-config'], output='text') + except TypeError: + self.execute(['copy running-config startup-config']) def load_checkpoint(self, checkpoint): try: