Open borisno2 opened 7 years ago
Accepted, thank you!
@chouseknecht https://github.com/chouseknecht/ansible-container/blob/953049c/container/utils/__init__.py#L249
Hi, guys. Looks like a serious blocker. Any workaround suggestions?
@ilyapoz
Can you provide more detail? I'm not sure this is still an issue. It was filed against 0.9.1.
Thanks!
See summary section, perfectly describes current behavior on 0.9.2 from pip.
Never mind the workaround question actually, workaround is obviously to move dependencies to the container.yml
from meta/main.yml
Hello, our 17 roles heavily depend on meta/main.yml
in a chain, moving the dependencies to the container.yml is not a option, there any other workaround possible?
@chouseknecht I'm still getting this issue - using the same jenkins module and 0.9.3 - the workarounds don't seem to help either! It might be down to this being my first venture with ansible though!
I'm using this role, which is a version of the jenkins module which I'm trying to container enable.
https://github.com/tomasquith/ansible-role-jenkins/tree/docker
Other than that, it's straight from the ansible-container init skeleton - any help would be greatly appreciated.
Just got this issue. I added print role_path
to container/utils/__init__.py before for dependency in meta_main.get('dependencies', []):
to track down the role that's causing the issue.
If you need step by step debugging, checkout this article https://github.com/ansible/ansible-container/wiki/Using-idea-to-remote-debug-ansible-container
I managed to do it with jetbran's py debug egg.
ISSUE TYPE
container.yml
OS / ENVIRONMENT
SUMMARY
When meta/main.yml is empty or nothing is listed under dependancies ansible-container build returns
AttributeError: 'NoneType' object has no attribute 'get'
when dependencies look like thisansibl-container build returns
AttributeError: 'str' object has no attribute 'get'
STEPS TO REPRODUCE
make meta/main.yml blank or dependencies blanks OR
EXPECTED RESULTS
Install dependencies or ignore file and continue
ACTUAL RESULTS
Failed with
WORKAROUND
add
role:
to each line of dependencies list like:OR put square brackets after dependencies like: