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))