X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=nm.py;h=85c9004fedf6f606f42a09f894509974ed38dbeb;hb=6d65ae5c5fd545f02a92582b3ff8d961b46da0d4;hp=ed5309e9b7cf43126bef8143e5cec6f87ae09a4c;hpb=7acb378c1b5448d23bd1eb0e6583a530604d0511;p=nodemanager.git diff --git a/nm.py b/nm.py index ed5309e..85c9004 100755 --- a/nm.py +++ b/nm.py @@ -134,6 +134,7 @@ def run(): plc = PLCAPI(config.plc_api_uri, config.cacert, session, timeout=iperiod/2) #check auth + logger.log("Checking Auth.") while plc.check_authentication() != True: try: plc.update_session() @@ -141,6 +142,7 @@ def run(): except: logger.log("Retry Failed. Waiting") time.sleep(iperiod) + logger.log("Authentication Succeeded!") while True: