Fixed TypeError instancemethod expecting at least 2 arguments (#69463)

* Fixed TypeError instancemethod expecting at least 2 arguments

* added changlelog for 69463
pull/70431/head
peanutduck 4 years ago committed by GitHub
parent 7a15a3a109
commit 36d7ba1408
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,2 @@
bugfixes:
- Fixed TypeError instancemethod expecting at least 2 arguments for apt_repository(issue https://github.com/ansible/ansible/issues/69308, PR https://github.com/ansible/ansible/pull/69463)

@ -406,6 +406,12 @@ class UbuntuSourcesList(SourcesList):
self.codename = module.params['codename'] or distro.codename
super(UbuntuSourcesList, self).__init__(module)
def __deepcopy__(self, memo=None):
return UbuntuSourcesList(
self.module,
add_ppa_signing_keys_callback=self.add_ppa_signing_keys_callback
)
def _get_ppa_info(self, owner_name, ppa_name):
lp_api = self.LP_API % (owner_name, ppa_name)

Loading…
Cancel
Save