From abd9454018dcbf63852cda5c469c5677a3bcccb3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?C=C3=A9dric=20Le=20Ninivin?= <cedric.leninivin@tiolive.com>
Date: Tue, 2 Oct 2012 17:54:29 +0200
Subject: [PATCH] Updated entry for request

---
 slapos/entry.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/slapos/entry.py b/slapos/entry.py
index dd678c842..98a05c5e7 100644
--- a/slapos/entry.py
+++ b/slapos/entry.py
@@ -84,7 +84,7 @@ def call(fun, config=False, option=[]):
     checkOption(element)
   if config:
     if not checkSlaposCfg():
-      sys.argv.append(config)
+      sys.argv = [sys.argv[0]] + [config] + sys.argv[1:]
   fun()
 
 def showUsage():
@@ -125,7 +125,8 @@ def dispatch(command, is_node):
     else:
       supervisord()
   elif command == 'request':
-    request()
+    config = '~/.slapos/slapos.cfg'
+    call(request, config=config)
   elif command == 'supply':
     raise EntryPointNotImplementedError(command)
   elif command == 'start':
-- 
2.30.9