From 8cf1a915935950d440ec82a5b8438a5fb10d2ad5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Lebleu?= Date: Mon, 19 May 2014 17:22:45 +0200 Subject: [PATCH] [enh] Adapt yunohost-api binary to the moulinette --- bin/yunohost-api | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/yunohost-api b/bin/yunohost-api index df29b1441..fc43710b9 100755 --- a/bin/yunohost-api +++ b/bin/yunohost-api @@ -35,16 +35,16 @@ if __name__ == '__main__': init(_from_source=from_source) # Additional arguments - use_cache = True + cache = True if '--no-cache' in sys.argv: - use_cache = False + cache = False sys.argv.remove('--no-cache') # TODO: Add log argument try: # Run the server - api(['yunohost'], 6787, - {('GET', '/installed'): is_installed}, use_cache) + api(['yunohost'], port=6787, + routes={('GET', '/installed'): is_installed}, use_cache=cache) except MoulinetteError as e: from moulinette.interfaces.cli import colorize print('%s %s' % (colorize(m18n.g('error'), 'red'), e.strerror))