diff options
Diffstat (limited to 'test/mocks/pmsh-pnf-sim/docker-compose/schedulepmjob.py')
-rw-r--r-- | test/mocks/pmsh-pnf-sim/docker-compose/schedulepmjob.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/mocks/pmsh-pnf-sim/docker-compose/schedulepmjob.py b/test/mocks/pmsh-pnf-sim/docker-compose/schedulepmjob.py index ecbd74417..2c6c587ed 100644 --- a/test/mocks/pmsh-pnf-sim/docker-compose/schedulepmjob.py +++ b/test/mocks/pmsh-pnf-sim/docker-compose/schedulepmjob.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python3 + import time import schedule from pnf import PNF @@ -6,7 +8,7 @@ import pnfconfig if __name__ == "__main__": try: pnf = PNF() - schedule.every(pnfconfig.rop).seconds.do(lambda: pnf.pm_job(pnfconfig.VES_IP, pnfconfig.VES_PORT)) + schedule.every(pnfconfig.ROP).seconds.do(pnf.pm_job) while True: schedule.run_pending() time.sleep(1) |