Added status to VM (entry) on creation, correctly wrap (etcd) critical section using lock

This commit is contained in:
ahmadbilalkhalid 2019-06-24 17:43:48 +05:00
commit 588c2462de
3 changed files with 15 additions and 4 deletions

View file

@ -5,6 +5,7 @@ from decouple import config
from pyotp import TOTP
from etcd import EtcdKeyNotFound
def check_otp(name, realm, seed):
try:
data = {