Skip to content

Commit

Permalink
Merge pull request #2061 from mwhudson/no-pro-for-core
Browse files Browse the repository at this point in the history
do not offer to enable Pro for core installs
  • Loading branch information
mwhudson authored Aug 21, 2024
2 parents 2fc5a09 + a7d77c9 commit 086cba9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 0 additions & 2 deletions examples/answers/uc24.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ Proxy:
Filesystem:
guided: yes
guided-index: 0
UbuntuPro:
token: ""
InstallProgress:
reboot: yes
Drivers:
Expand Down
1 change: 1 addition & 0 deletions subiquity/server/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ def __init__(self, app):
async def _confirmed(self):
variant = self.app.base_model.source.current.variant
if variant not in self.interactive_for_variants:
log.debug(f"disabling {self.name} as it is not interactive for {variant}")
await self.configured()
self._active = False

Expand Down
2 changes: 2 additions & 0 deletions subiquity/server/controllers/ubuntu_pro.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ class UbuntuProController(SubiquityController):
},
}

interactive_for_variants = {"desktop", "server"}

def __init__(self, app) -> None:
"""Initializer for server-side Ubuntu Pro controller."""
strategy: UAInterfaceStrategy
Expand Down

0 comments on commit 086cba9

Please sign in to comment.