mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-25 14:20:22 -07:00
removes unused 'update' module parameter, packages may be updated using 'latest' state
This commit is contained in:
parent
e8ef594c42
commit
1ac1ad5468
1 changed files with 0 additions and 12 deletions
|
@ -26,7 +26,6 @@ class AndroidSdk(StateModuleHelper):
|
||||||
argument_spec=dict(
|
argument_spec=dict(
|
||||||
state=dict(type='str', default='present', choices=['present', 'absent', 'latest']),
|
state=dict(type='str', default='present', choices=['present', 'absent', 'latest']),
|
||||||
package=dict(type='list', elements='str', aliases=['pkg', 'name']),
|
package=dict(type='list', elements='str', aliases=['pkg', 'name']),
|
||||||
update=dict(type='bool', default=False),
|
|
||||||
sdk_root=dict(type='path'),
|
sdk_root=dict(type='path'),
|
||||||
channel=dict(type='str', default='stable', choices=['stable', 'beta', 'dev', 'canary'])
|
channel=dict(type='str', default='stable', choices=['stable', 'beta', 'dev', 'canary'])
|
||||||
),
|
),
|
||||||
|
@ -87,21 +86,10 @@ class AndroidSdk(StateModuleHelper):
|
||||||
if rc != 0:
|
if rc != 0:
|
||||||
self.do_raise("Could not install packages: %s" % stderr)
|
self.do_raise("Could not install packages: %s" % stderr)
|
||||||
|
|
||||||
def update_packages(self):
|
|
||||||
pass
|
|
||||||
# with self.sdkmanager('update') as ctx:
|
|
||||||
# ctx.run()
|
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _map_packages_to_names(packages):
|
def _map_packages_to_names(packages):
|
||||||
return [x.name for x in packages]
|
return [x.name for x in packages]
|
||||||
|
|
||||||
def __run__(self):
|
|
||||||
super().__run__()
|
|
||||||
|
|
||||||
if self.vars.update:
|
|
||||||
self.update_packages()
|
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
AndroidSdk.execute()
|
AndroidSdk.execute()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue