mirror of
https://gitlab.com/fabinfra/fabaccess/bffh.git
synced 2024-11-23 23:27:57 +01:00
14 lines
327 B
Python
14 lines
327 B
Python
|
#!/usr/bin/env python
|
||
|
|
||
|
import sys
|
||
|
import time
|
||
|
|
||
|
while True:
|
||
|
print('{ "state": { "1.3.6.1.4.1.48398.612.2.4": { "state": "Free" } } }')
|
||
|
sys.stdout.flush()
|
||
|
time.sleep(2)
|
||
|
|
||
|
print('{ "state": { "1.3.6.1.4.1.48398.612.2.4": { "state": { "InUse": { "id": "Testuser" } } } } }')
|
||
|
sys.stdout.flush()
|
||
|
time.sleep(2)
|