-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds the possibility to also use downloadonly in kwargs #55448
Conversation
The download_only parameter in the apt module is not in line with the yum and zypper modules. Both of them use downloadonly without the underline. With this change apt now additionally supports the downloadonly parameter. Fixes #54790
This will be cleaned up later.
… and removal of debug prints
@@ -1048,7 +1049,7 @@ def upgrade(refresh=True, dist_upgrade=False, **kwargs): | |||
cmd.append('--force-yes') | |||
if kwargs.get('skip_verify', False): | |||
cmd.append('--allow-unauthenticated') | |||
if kwargs.get('download_only', False): | |||
if kwargs.get('download_only', False) or kwargs.get('downloadonly', False): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There should be a deprecation warning here too log.warning('download_only will be deprecated in a future release')
as described in #54790
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Akm0d Do we want to deprecate it?
What does this PR do?
This is the same as #54793, but for master.
The download_only parameter in the apt module is not in line with the yum and zypper modules. Both of them use downloadonly without the underline.
With this change apt now additionally supports the downloadonly parameter.
What issues does this PR fix or reference?
Fixes #54790
Previous Behavior
The apt module had to be used with
download_only
.New Behavior
The apt module can now also be used with
downloadonly
.Tests written?
Yes
Commits signed with GPG?
Yes