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

* Fixed TypeError instancemethod expecting at least 2 arguments

* added changlelog for 69463
This commit is contained in:
peanutduck 2020-07-02 12:01:31 +08:00 committed by GitHub
parent 7a15a3a109
commit 36d7ba1408
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View file

@ -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)

View file

@ -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)