xcat2 / xcat-inventory

An inventory tool for xcat cluster
8 stars 16 forks source link

Check expire is wrong #216

Closed robin2008 closed 5 years ago

robin2008 commented 5 years ago

1, There is a code error to check the time

-        if not check_expire or time.time() >= float(exp):
+        if not check_expire or time.time() < float(exp):
             return 0, usr

2, Not using embbed "message": {"message": xxx}

zet809 commented 5 years ago

Good to me, I agree to merge, thx a lot!