Skip to content

Commit

Permalink
fix issue with workflow
Browse files Browse the repository at this point in the history
workflow was failing because of apt-get issues
  • Loading branch information
anish-mudaraddi committed Aug 13, 2024
1 parent 2094e1c commit 672331a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/rabbit_consumer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
cache: "pip"
- name: Install dependencies
run: |
sudo apt-get update --fix-missing
python -m pip install --upgrade pip
# Required for requests-kerberos
sudo DEBIAN_FRONTEND=noninteractive apt-get -yq install libkrb5-dev
Expand Down
1 change: 1 addition & 0 deletions OpenStack-Rabbit-Consumer/rabbit_consumer/aq_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ def aq_make(addresses: List[OpenstackAddress]) -> None:
except AquilonError:
logger.debug("make request failed, continuing", hostname)


def aq_manage(addresses: List[OpenstackAddress], image_meta: AqMetadata) -> None:
"""
Manages the list of Aquilon addresses passed to it back to the production domain
Expand Down
3 changes: 1 addition & 2 deletions OpenStack-Rabbit-Consumer/tests/test_aq_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def test_aq_make_aquilon_error(config, setup, openstack_address_list):
config.return_value.aq_url = domain
setup.side_effect = AquilonError()

#pylint:disable=bare-except
# pylint:disable=bare-except
try:
aq_make(openstack_address_list)
except:
Expand All @@ -161,7 +161,6 @@ def test_aq_make_aquilon_error(config, setup, openstack_address_list):
setup.assert_called_once_with(expected_url, "post", mock.ANY)



@pytest.mark.parametrize("hostname", [" ", "", None])
@patch("rabbit_consumer.aq_api.setup_requests")
@patch("rabbit_consumer.aq_api.ConsumerConfig")
Expand Down

0 comments on commit 672331a

Please sign in to comment.