moira-python-client 4.3.2__py3-none-any.whl → 5.0.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -45,11 +45,8 @@ class ContactManager:
45
45
  contacts = self.fetch_by_current_user()
46
46
  for contact in contacts:
47
47
  if contact.value == value and contact.type == contact_type:
48
- if name and contact.name != name:
49
- contact.name = name
50
- self.update(contact)
48
+ if name is not None and contact.name == name:
51
49
  return contact
52
- return contact
53
50
 
54
51
  data = {
55
52
  'value': value,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: moira-python-client
3
- Version: 4.3.2
3
+ Version: 5.0.0
4
4
  Summary: Client for Moira - Alerting system based on Graphite data
5
5
  Home-page: https://github.com/moira-alert/python-moira-client
6
6
  Author: Alexander Lukyanchenko
@@ -4,7 +4,7 @@ moira_client/moira.py,sha256=Pa3grEVhGu2gcPxWR8sdu7GGowNF3AXBYvK1nmRiZi8,3859
4
4
  moira_client/models/__init__.py,sha256=K3Kcjh8F_jV703ii-QMeN9cMwqcCfbfeNF7e9MfCD1c,126
5
5
  moira_client/models/base.py,sha256=cYVLxnc5PGjmUcoZRZ7AFx5f0Ij96HypJpOjpwr_D-Q,385
6
6
  moira_client/models/config.py,sha256=BbsShuKhe5H0DTXkIeOndHyXbi2xW2BRP0pwoIQl4Ok,2178
7
- moira_client/models/contact.py,sha256=-z8p32EIUfG9x8KRbUPeJR3DroOuPHfBN9pv8yq4lgI,4987
7
+ moira_client/models/contact.py,sha256=hS-OQ3EGG0ODMIYT4rHYgKBlJr9yB36mF3mDNIV7yTc,4887
8
8
  moira_client/models/event.py,sha256=pXsuU-X3i3DX89rs1wBaB7SBvw_q5dgJwLJgQFrp7vg,1375
9
9
  moira_client/models/health.py,sha256=a2bGgHVVbcIJCraArjI9V-gqpwdRZ1B5SnNrsLqR6mI,1708
10
10
  moira_client/models/notification.py,sha256=stk78RW0lENkBX7FHm9cTskHkz8SxdXmpcXP72XwWio,1946
@@ -26,8 +26,8 @@ moira_client/models/team/subscription/_managers.py,sha256=lMWyWc8jibQcjLOBAXTKtC
26
26
  moira_client/models/team/user/__init__.py,sha256=XDgaELIXAcD8l0SBVjQ8OSaSknMd1qGJ_dRmT0VxyVI,129
27
27
  moira_client/models/team/user/_managers.py,sha256=9AeMrMVjek7hsHS9mGNeX9RaK6UCV5JU6GlFDouI_b0,1458
28
28
  moira_client/models/team/user/_models.py,sha256=E90MLjV4Xtbypy_LXatzJdmCy1MUs8NZfs0RlRneUsI,134
29
- moira_python_client-4.3.2.dist-info/LICENSE,sha256=HJk93uYDrJpwAa6G3ufYfC4ZgCKH2flOtdgOv1esxgI,1062
30
- moira_python_client-4.3.2.dist-info/METADATA,sha256=BvkpIW3TvZ5mJnvu33QDryVIM0ECdmStbuRMS_UruNk,1398
31
- moira_python_client-4.3.2.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
32
- moira_python_client-4.3.2.dist-info/top_level.txt,sha256=zBB6_FP28feugBNn2cLmi5nCniRPnuChI6HuXUqFdIA,13
33
- moira_python_client-4.3.2.dist-info/RECORD,,
29
+ moira_python_client-5.0.0.dist-info/LICENSE,sha256=HJk93uYDrJpwAa6G3ufYfC4ZgCKH2flOtdgOv1esxgI,1062
30
+ moira_python_client-5.0.0.dist-info/METADATA,sha256=Ow5-HRmHk2XvE7E07PRE0fImg-izJbptX-J2BPZ_NL0,1398
31
+ moira_python_client-5.0.0.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
32
+ moira_python_client-5.0.0.dist-info/top_level.txt,sha256=zBB6_FP28feugBNn2cLmi5nCniRPnuChI6HuXUqFdIA,13
33
+ moira_python_client-5.0.0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.8.0)
2
+ Generator: setuptools (75.8.2)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5