From 5028e29879d2169ec5e7dedae27607ee7a6423cf Mon Sep 17 00:00:00 2001 From: Chris Ross Date: Wed, 14 Mar 2018 13:40:40 -0400 Subject: [PATCH] Replace poll_interval var with agent_delay --- lib/listeners/onedrive.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/listeners/onedrive.py b/lib/listeners/onedrive.py index f9e8581..8f1d33e 100644 --- a/lib/listeners/onedrive.py +++ b/lib/listeners/onedrive.py @@ -289,7 +289,7 @@ class Listener: staging_folder = listenerOptions['StagingFolder']['Value'] working_hours = listenerOptions['WorkingHours']['Value'] profile = listenerOptions['DefaultProfile']['Value'] - poll_interval = listenerOptions['PollInterval']['Value'] + agent_delay = listenerOptions['DefaultDelay']['Value'] if language.lower() == 'powershell': f = open("%s/data/agent/stagers/onedrive.ps1" % self.mainMenu.installPath) @@ -299,7 +299,7 @@ class Listener: stager = stager.replace("REPLACE_STAGING_FOLDER", "%s/%s" % (base_folder, staging_folder)) stager = stager.replace('REPLACE_STAGING_KEY', staging_key) stager = stager.replace("REPLACE_TOKEN", token) - stager = stager.replace("REPLACE_POLLING_INTERVAL", poll_interval) + stager = stager.replace("REPLACE_POLLING_INTERVAL", str(agent_delay)) if working_hours != "": stager = stager.replace("REPLACE_WORKING_HOURS", working_hours)