Skip to content

Commit

Permalink
Fix backwards-compat branch ref in legacy update method (#21)
Browse files Browse the repository at this point in the history
# Description
Fix branch ref used in legacy update method

# Issues
Addresses test failure
#20

# Other Notes
<!-- Note any breaking changes, WIP changes, requests for input, etc.
here -->

---------

Co-authored-by: Daniel McKnight <[email protected]>
  • Loading branch information
NeonDaniel and NeonDaniel authored Jul 15, 2024
1 parent 1e7cc74 commit 842f2d1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions neon_phal_plugin_device_updater/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ def _legacy_check_initramfs_update_available(self,
@return: True if a newer initramfs is available to download
"""
branch = branch or self._default_branch
branch = "master" if branch == "stable" else branch
if not self.initramfs_url:
raise RuntimeError("No initramfs_url configured")
initramfs_url = self.initramfs_url.format(branch)
Expand Down

0 comments on commit 842f2d1

Please sign in to comment.