From 4e7e7042cc14ec18cfb75fdde5bfd4c160483fd7 Mon Sep 17 00:00:00 2001 From: Anil Kumar Muraleedharan Date: Wed, 31 Jan 2018 14:04:43 +0530 Subject: [PATCH] Changing order of load and loadfp (#34793) * Changing order of load and loadfp * Removing exception as per Ganesh Review comments --- lib/ansible/modules/network/enos/enos_config.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/ansible/modules/network/enos/enos_config.py b/lib/ansible/modules/network/enos/enos_config.py index 3a316570cb2..2271d39c319 100644 --- a/lib/ansible/modules/network/enos/enos_config.py +++ b/lib/ansible/modules/network/enos/enos_config.py @@ -183,10 +183,7 @@ def get_running_config(module): def get_candidate(module): candidate = NetworkConfig(indent=1) if module.params['src']: - try: - candidate.loadfp(module.params['src']) - except IOError: - candidate.load(module.params['src']) + candidate.load(module.params['src']) elif module.params['lines']: parents = module.params['parents'] or list() candidate.add(module.params['lines'], parents=parents)