Fix configure_haproxy() complexity as it's currently failing lint tests

Bug #1825084 reported by Haw Loeung
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Content Cache Charm
Triaged
Wishlist
Unassigned

Bug Description

In my haste to bring up a new service, configure_haproxy() was updated implementing the features required. Unfortunately, this now fails the lint test with the following:

| ./reactive/content_cache.py:130:1: C901 'configure_haproxy' is too complex (14)

This bug is to fix that and remove the NOQA.

Related branches

Revision history for this message
Haw Loeung (hloeung) wrote :

Have assigned it to me, and will mark "In Progress" once work has started. Unless someone else wants to get their feet wet and pick this up.

Changed in content-cache-charm:
status: New → Triaged
importance: Undecided → Medium
assignee: nobody → Haw Loeung (hloeung)
Haw Loeung (hloeung)
summary: - Fix configure_haproxy() as it's currently failing lint tests
+ Fix configure_haproxy() complexity as it's currently failing lint tests
Haw Loeung (hloeung)
Changed in content-cache-charm:
importance: Medium → Low
Haw Loeung (hloeung)
Changed in content-cache-charm:
importance: Low → Wishlist
Haw Loeung (hloeung)
Changed in content-cache-charm:
assignee: Haw Loeung (hloeung) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.