summaryrefslogtreecommitdiffstats
path: root/module/cli/ManageFiles.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/cli/ManageFiles.py')
-rw-r--r--module/cli/ManageFiles.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/module/cli/ManageFiles.py b/module/cli/ManageFiles.py
index f0f9ec93a..4d0377d9d 100644
--- a/module/cli/ManageFiles.py
+++ b/module/cli/ManageFiles.py
@@ -24,13 +24,13 @@ from time import time
from Handler import Handler
from printer import *
-from module.remote.thriftbackend.thriftgen.pyload.Pyload import PackageData, PackageDoesNotExists
+from module.Api import Destination, PackageData
class ManageFiles(Handler):
""" possibility to manage queue/collector """
def init(self):
- self.target = 1 #queue and collector are swapped
+ self.target = Destination.Queue
self.pos = 0 #position in queue
self.package = -1 #choosen package
self.mode = "" # move/delete/restart
@@ -155,7 +155,7 @@ class ManageFiles(Handler):
if self.cache and self.time + 2 < time():
return self.cache
- if self.target == 1:
+ if self.target == Destination.Queue:
data = self.client.getQueue()
else:
data = self.client.getCollector()