Ticket #1076: bcfg2-info.patch

File bcfg2-info.patch, 592 bytes (added by https://www.google.com/accounts/o8/id?id=AItOawkfar6gGD3PuUixQdEZQyRr2mpowLW1A70, 10 years ago)
  • src/sbin/bcfg2-info

    old new  
    188188        """Build client configuration.""" 
    189189        alist = args.split() 
    190190        path_force = False 
    191         if '-f' in args: 
    192             alist.remove('-f') 
    193             path_force = True 
     191        for arg in alist: 
     192            if arg == '-f': 
     193                alist.remove('-f') 
     194                path_force = True 
    194195        if len(alist) == 2: 
    195196            client, ofile = alist 
    196197            if not ofile.startswith('/tmp') and not path_force: