From: <sv...@ze...> - 2008-05-05 14:23:26
|
Author: ecn Date: 2008-05-05 10:23:11 -0400 (Mon, 05 May 2008) New Revision: 9169 Modified: trunk/Products/ZenWin/zenwinmodeler.py Log: * fixes 3099: try to point the user to the config to fix their windows login Modified: trunk/Products/ZenWin/zenwinmodeler.py =================================================================== --- trunk/Products/ZenWin/zenwinmodeler.py 2008-05-02 19:40:30 UTC (rev 9168) +++ trunk/Products/ZenWin/zenwinmodeler.py 2008-05-05 14:23:11 UTC (rev 9169) @@ -125,6 +125,17 @@ self.log.warn("WMIClient creation failed") return except (SystemExit, KeyboardInterrupt): raise + except pywintypes.com_error, e: + code,txt,info,param = e + msg = self.printComErrorMessage(e) + if msg: + self.log.warning("WMI Com error: %s", msg) + if info: + wcode, source, descr, hfile, hcont, scode = info + if scode == 1326 and device.zWinPassword == '': + self.log.warning("You must set the zProperty " + "zWinPassword for device %s.", hostname) + return except: self.log.exception("Error opening WMIClient") return |