##### SUMMARY
script contains call to Display.deprecated or AnsibleModule.deprecate and is scheduled for removal

```
lib/ansible/plugins/inventory/script.py:97:12: ansible-deprecated-version: Deprecated version ('2.12') found in call to Display.deprecated or AnsibleModule.deprecate (0%)
```

##### ISSUE TYPE
 - Bug Report

##### COMPONENT NAME
```
lib/ansible/plugins/inventory/script.py
```

##### ANSIBLE VERSION
```
2.12
```

##### CONFIGURATION
N/A

##### OS / ENVIRONMENT
N/A

##### STEPS TO REPRODUCE
N/A

##### EXPECTED RESULTS
N/A

##### ACTUAL RESULTS
N/A

super(InventoryModule, self).parse(inventory, loader, path)
        self.set_options()
        if self.get_option('cache') is not None:
            display.deprecated(
                msg="The 'cache' option is deprecated for the script inventory plugin. "
                "External scripts implement their own caching and this option has never been used",
                version="2.12", collection_name='ansible.builtin'
            )
        
        
        
        cmd = [path, "--list"]
        try:
            try:
                sp = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
            except OSError as e:
                raise AnsibleParserError("problem running %s (%s)" % (' '.join(cmd), to_native(e)))
            (stdout, stderr) = sp.communicate()
            path = to_native(path)
            err = to_native(stderr or "")
            if err and not err.endswith('\n'):
                err += '\n'
            if sp.returncode != 0:
                raise AnsibleError("Inventory script (%s) had an execution error: %s " % (path, err))