Skip to content
This repository has been archived by the owner on Mar 23, 2019. It is now read-only.

Handle role with empty metadata file (fix AttributeError) #882

Merged
merged 1 commit into from
Mar 6, 2018
Merged

Handle role with empty metadata file (fix AttributeError) #882

merged 1 commit into from
Mar 6, 2018

Commits on Feb 8, 2018

  1. Handle role with empty metadata file

    exception was:
    Traceback (most recent call last):
      File "/usr/local/bin/conductor", line 11, in <module>
        load_entry_point('ansible-container', 'console_scripts', 'conductor')()
      File "/_ansible/container/__init__.py", line 19, in __wrapped__
        return fn(*args, **kwargs)
      File "/_ansible/container/cli.py", line 423, in conductor_commandline
        **params)
      File "/_ansible/container/__init__.py", line 19, in __wrapped__
        return fn(*args, **kwargs)
      File "/_ansible/container/core.py", line 809, in conductorcmd_build
        role_fingerprint = get_role_fingerprint(role, service_name, config_vars)
      File "/_ansible/container/__init__.py", line 19, in __wrapped__
        return fn(*args, **kwargs)
      File "/_ansible/container/utils/__init__.py", line 326, in get_role_fingerprint
        hash_role(hash_obj, resolve_role_to_path(role))
      File "/_ansible/container/utils/__init__.py", line 286, in hash_role
        hash_role(hash_obj, dependency_path)
      File "/_ansible/container/utils/__init__.py", line 286, in hash_role
        hash_role(hash_obj, dependency_path)
      File "/_ansible/container/utils/__init__.py", line 283, in hash_role
        for dependency in get_dependencies_for_role(role_path):
      File "/_ansible/container/utils/__init__.py", line 317, in get_dependencies_for_role
        for dependency in meta_main.get('dependencies', []):
    AttributeError: 'NoneType' object has no attribute 'get'
    pilou- committed Feb 8, 2018
    Configuration menu
    Copy the full SHA
    3ef600e View commit details
    Browse the repository at this point in the history