mirror of https://github.com/ansible/ansible.git
Remove remaining 2.18 deprecations (#83949)
* Remove remaining 2.18 deprecations. Fixes #82948. Fixes #82946. * ci_complete * Ensure non-UTF8 error message is surfacedpull/83991/head
parent
602e96908a
commit
3f444d01e0
@ -1,3 +1,4 @@
|
||||
shippable/posix/group2
|
||||
destructive
|
||||
needs/target/setup_pexpect
|
||||
gather_facts/no
|
||||
|
@ -0,0 +1,16 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import sys
|
||||
|
||||
prompts = sys.argv[1:] or ['foo']
|
||||
|
||||
# latin1 encoded bytes
|
||||
# to ensure pexpect doesn't have any encoding errors
|
||||
data = b'premi\xe8re is first\npremie?re is slightly different\n????????? is Cyrillic\n? am Deseret\n'
|
||||
|
||||
sys.stdout.buffer.write(data)
|
||||
print()
|
||||
|
||||
for prompt in prompts:
|
||||
user_input = input(prompt)
|
||||
print(user_input)
|
@ -1,8 +0,0 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from ansible.plugins.lookup import LookupBase
|
||||
|
||||
|
||||
class LookupModule(LookupBase):
|
||||
def run(self, terms, variables, **kwargs):
|
||||
return {'one': 1, 'two': 2}
|
Loading…
Reference in New Issue