Skip to content

Commit 1ba0704

Browse files
olymk2proofit404
authored andcommitted
Fix docker service name returning string instead of list. (#14)
now Assoc's out the value from the string
1 parent 69b812c commit 1ba0704

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

pythonic.el

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -233,9 +233,11 @@ print(json.dumps(yaml.safe_load(open(sys.argv[-1], 'r'))))
233233
;; should appears once in the selection and all volumes
234234
;; should be added to the alias list.
235235
(volume (if (< 1 (length volumes))
236-
(if pythonic-docker-compose-service-name
237-
pythonic-docker-compose-service-name
238-
(assoc (completing-read "Service: " (mapcar 'car volumes) nil t) volumes))
236+
(assoc
237+
(if pythonic-docker-compose-service-name
238+
pythonic-docker-compose-service-name
239+
(completing-read "Service: " (mapcar 'car volumes) nil t))
240+
volumes)
239241
(car volumes)))
240242
(service (car volume))
241243
(sub-project (f-join project (cadr volume)))

0 commit comments

Comments
 (0)