qontract-reconcile 0.10.2.dev99__py3-none-any.whl → 0.10.2.dev100__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: qontract-reconcile
3
- Version: 0.10.2.dev99
3
+ Version: 0.10.2.dev100
4
4
  Summary: Collection of tools to reconcile services with their desired state as defined in the app-interface DB.
5
5
  Project-URL: homepage, https://github.com/app-sre/qontract-reconcile
6
6
  Project-URL: repository, https://github.com/app-sre/qontract-reconcile
@@ -631,7 +631,7 @@ reconcile/utils/password_validator.py,sha256=XwuWg-8CPlcuG7dl_oQ1G1h2gSVSnfMym_V
631
631
  reconcile/utils/prometheus.py,sha256=Ad0rwLbxRuuYjHwkwJloHEdK0bvy42h-p-HIT1DhDhs,3832
632
632
  reconcile/utils/promotion_state.py,sha256=McSgGj3oog83ThJCrMR2v8q6Xb_Pxij-HEe_RbDu8cg,3946
633
633
  reconcile/utils/promtool.py,sha256=qOWgRY9-HgfTAcQz8NnLfnZn2WtCAvRAr85YQRXvMSA,2831
634
- reconcile/utils/quay_api.py,sha256=uE_jxcdy3ViHtYFAfwDQuFDaO7Pr6AAPoVnmORbyHio,7822
634
+ reconcile/utils/quay_api.py,sha256=SW9UEdIs4PUL7ttTrFxPXO_Eu39IKMAL86j0cAxnMVI,7938
635
635
  reconcile/utils/raw_github_api.py,sha256=2WKtE8ABYYB9UGOAh9N_kLkksBWL3320Z2_scteZddI,2805
636
636
  reconcile/utils/repo_owners.py,sha256=BHrAXxKyvn4qWJwFPWYGTtfgnLmYnWtYFEJGFeD__FE,6573
637
637
  reconcile/utils/rest_api_base.py,sha256=Ep3wmabbzpWzcvZsfJHN3R1XgNtQXHmiYKOMAgtLspk,4277
@@ -786,7 +786,7 @@ tools/saas_promotion_state/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJ
786
786
  tools/saas_promotion_state/saas_promotion_state.py,sha256=UfwwRLS5Ya4_Nh1w5n1dvoYtchQvYE9yj1VANt2IKqI,3925
787
787
  tools/sre_checkpoints/__init__.py,sha256=CDaDaywJnmRCLyl_NCcvxi-Zc0hTi_3OdwKiFOyS39I,145
788
788
  tools/sre_checkpoints/util.py,sha256=zEDbGr18ZeHNQwW8pUsr2JRjuXIPz--WAGJxZo9sv_Y,894
789
- qontract_reconcile-0.10.2.dev99.dist-info/METADATA,sha256=DAqORQ1nXWb46jLn2koRabedQbqn4-T2-nb3KzCNClM,24565
790
- qontract_reconcile-0.10.2.dev99.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
791
- qontract_reconcile-0.10.2.dev99.dist-info/entry_points.txt,sha256=5i9l54La3vQrDLAdwDKQWC0iG4sV9RRfOb1BpvzOWLc,698
792
- qontract_reconcile-0.10.2.dev99.dist-info/RECORD,,
789
+ qontract_reconcile-0.10.2.dev100.dist-info/METADATA,sha256=B-YM-5lrAMNRoaIdRRJJTJ7f_5eRdK47wtq3gmGXkuM,24566
790
+ qontract_reconcile-0.10.2.dev100.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
791
+ qontract_reconcile-0.10.2.dev100.dist-info/entry_points.txt,sha256=5i9l54La3vQrDLAdwDKQWC0iG4sV9RRfOb1BpvzOWLc,698
792
+ qontract_reconcile-0.10.2.dev100.dist-info/RECORD,,
@@ -68,9 +68,12 @@ class QuayApi:
68
68
  if not r.ok:
69
69
  message = r.json().get("message", "")
70
70
 
71
- expected_message = f"User {user} does not belong to team {team}"
71
+ expected_messages = [
72
+ f"User {user} does not belong to team {team}",
73
+ "User cannot remove themselves from their only admin team.",
74
+ ]
72
75
 
73
- if message != expected_message:
76
+ if message not in expected_messages:
74
77
  r.raise_for_status()
75
78
 
76
79
  url_org = f"{self.api_url}/organization/{self.organization}/members/{user}"