From 7a6338ccf01118c1576b49fd8aa5c477fc44697a Mon Sep 17 00:00:00 2001 From: Oly Date: Tue, 23 Jul 2019 14:32:13 +0100 Subject: [PATCH] Fix docker service name returning string instead of list. now Assoc's out the value from the string --- pythonic.el | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pythonic.el b/pythonic.el index cc61f81..57e4b8d 100644 --- a/pythonic.el +++ b/pythonic.el @@ -233,9 +233,11 @@ print(json.dumps(yaml.safe_load(open(sys.argv[-1], 'r')))) ;; should appears once in the selection and all volumes ;; should be added to the alias list. (volume (if (< 1 (length volumes)) - (if pythonic-docker-compose-service-name - pythonic-docker-compose-service-name - (assoc (completing-read "Service: " (mapcar 'car volumes) nil t) volumes)) + (assoc + (if pythonic-docker-compose-service-name + pythonic-docker-compose-service-name + (completing-read "Service: " (mapcar 'car volumes) nil t)) + volumes) (car volumes))) (service (car volume)) (sub-project (f-join project (cadr volume)))