Merge "Bump hacking to newer version"
This commit is contained in:
commit
3fd5ea14c2
@ -349,7 +349,7 @@ def match_expressions(expressions, labels):
|
|||||||
label_value = labels.get(str(exp['key']), None)
|
label_value = labels.get(str(exp['key']), None)
|
||||||
if exp_op == constants.K8S_OPERATOR_IN:
|
if exp_op == constants.K8S_OPERATOR_IN:
|
||||||
if label_value is None or label_value not in exp_values:
|
if label_value is None or label_value not in exp_values:
|
||||||
return False
|
return False
|
||||||
elif exp_op == constants.K8S_OPERATOR_NOT_IN:
|
elif exp_op == constants.K8S_OPERATOR_NOT_IN:
|
||||||
if label_value in exp_values:
|
if label_value in exp_values:
|
||||||
return False
|
return False
|
||||||
@ -373,7 +373,7 @@ def match_labels(crd_labels, labels):
|
|||||||
for crd_key, crd_value in crd_labels.items():
|
for crd_key, crd_value in crd_labels.items():
|
||||||
label_value = labels.get(crd_key, None)
|
label_value = labels.get(crd_key, None)
|
||||||
if not label_value or crd_value != label_value:
|
if not label_value or crd_value != label_value:
|
||||||
return False
|
return False
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
||||||
|
@ -321,9 +321,8 @@ def get_endpoints_link(service):
|
|||||||
link_parts = svc_link.split('/')
|
link_parts = svc_link.split('/')
|
||||||
|
|
||||||
if link_parts[-2] != 'services':
|
if link_parts[-2] != 'services':
|
||||||
raise exceptions.IntegrityError(_(
|
raise exceptions.IntegrityError(
|
||||||
"Unsupported service link: %(link)s") % {
|
f"Unsupported service link: {svc_link}")
|
||||||
'link': svc_link})
|
|
||||||
link_parts[-2] = 'endpoints'
|
link_parts[-2] = 'endpoints'
|
||||||
|
|
||||||
return "/".join(link_parts)
|
return "/".join(link_parts)
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# of appearance. Changing the order has an impact on the overall integration
|
# of appearance. Changing the order has an impact on the overall integration
|
||||||
# process, which may cause wedges in the gate later.
|
# process, which may cause wedges in the gate later.
|
||||||
|
|
||||||
hacking!=0.13.0,<0.14,>=0.12.0 # Apache-2.0
|
hacking>=2.0.0 # Apache-2.0
|
||||||
|
|
||||||
coverage!=4.4,>=4.0 # Apache-2.0
|
coverage!=4.4,>=4.0 # Apache-2.0
|
||||||
ddt>=1.0.1 # MIT
|
ddt>=1.0.1 # MIT
|
||||||
|
Loading…
x
Reference in New Issue
Block a user