0001-agent-only-check-role-attributes-when-provisionning-.patch
hobo/agent/common/management/commands/hobo_notify.py | ||
---|---|---|
130 | 130 |
logger = logging.getLogger(__name__) |
131 | 131 |
uuids = set() |
132 | 132 |
for o in data: |
133 |
assert cls.check_valid_role(o)
|
|
133 |
assert 'uuid' in o
|
|
134 | 134 |
uuids.add(o['uuid']) |
135 | 135 |
if action == 'provision': |
136 |
assert cls.check_valid_role(o) |
|
136 | 137 |
role_name = o['name'] |
137 | 138 |
if len(role_name) > 70: |
138 | 139 |
role_name = role_name[:70] + '(...)' |
139 |
- |