Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error container-transform 1.1.5 compose > ECS #84

Open
leotada opened this issue Nov 17, 2017 · 1 comment
Open

Error container-transform 1.1.5 compose > ECS #84

leotada opened this issue Nov 17, 2017 · 1 comment

Comments

@leotada
Copy link

leotada commented Nov 17, 2017

command:
container-transform -i compose -o ecs docker-compose.yaml

Traceback (most recent call last):
  File "/home/leonardo/.local/bin/container-transform", line 11, in <module>
    load_entry_point('container-transform==1.1.5', 'console_scripts', 'container-transform')()
  File "/home/leonardo/.local/lib/python3.6/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/home/leonardo/.local/lib/python3.6/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/home/leonardo/.local/lib/python3.6/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/leonardo/.local/lib/python3.6/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/home/leonardo/.local/lib/python3.6/site-packages/container_transform/client.py", line 64, in transform
    output = converter.convert(verbose)
  File "/home/leonardo/.local/lib/python3.6/site-packages/container_transform/converter.py", line 57, in convert
    output_transformer
  File "/home/leonardo/.local/lib/python3.6/site-packages/container_transform/converter.py", line 90, in _convert_container
    output[output_name] = emit_func(ingest_func(container.get(input_name)))
  File "/home/leonardo/.local/lib/python3.6/site-packages/container_transform/compose.py", line 305, in ingest_volumes
    in volumes
  File "/home/leonardo/.local/lib/python3.6/site-packages/container_transform/compose.py", line 306, in <listcomp>
    if self._ingest_volume(volume) is not None
  File "/home/leonardo/.local/lib/python3.6/site-packages/container_transform/compose.py", line 271, in _ingest_volume
    parts = volume.split(':')
AttributeError: 'dict' object has no attribute 'split'
@leotada
Copy link
Author

leotada commented Nov 18, 2017

Probably because this new optional syntax:

volumes:
  - type: volume
    source: ./db/etc.dump
    target: /dump/etc.dump

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant