From 19864a7e136786aa12ce0e4c20447d16c27cfc98 Mon Sep 17 00:00:00 2001 From: jesopo Date: Mon, 5 Nov 2018 12:59:40 +0000 Subject: `duration` does not exist in the context of _change_duration --- modules/sts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/sts.py b/modules/sts.py index 07ad2738..98da6581 100644 --- a/modules/sts.py +++ b/modules/sts.py @@ -13,7 +13,7 @@ class Module(ModuleManager.BaseModule): port = event["server"].port if "port" in info: port = int(info["port"]) - self._set_policy(server, port, duration) + self._set_policy(server, port, info["duration"]) @utils.hook("received.cap.ls") def on_cap_ls(self, event): -- cgit v1.3.1-10-gc9f91