From 18cc9ca6fa6d80d3c336b32336dbd1a725ed6e7e Mon Sep 17 00:00:00 2001 From: Antoine Durand-Gasselin Date: Thu, 18 Jun 2009 17:34:20 +0200 Subject: [PATCH] [gen_confs/switch.py] on recupere effectivement la conf si -g est passe en argument darcs-hash:20090618153420-bd074-7551c5ce7a1e809596b841ef2dcb98d22083e558.gz --- gestion/gen_confs/switchs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gestion/gen_confs/switchs.py b/gestion/gen_confs/switchs.py index b9bc348c..72259447 100644 --- a/gestion/gen_confs/switchs.py +++ b/gestion/gen_confs/switchs.py @@ -272,7 +272,7 @@ exit self.aff.cycle() - if '-g' in opts or '--get-conf' in opts: + if '-g' in opts or '--get-conf' in [ opt for opt,arg in opts]: old_config = NamedTemporaryFile() res, msg = commands.getstatusoutput("scp bat%s-%i:cfg/startup-config %s" % (bat, sw_num, old_config.name))