File: remote/utils.py
Issue: The get_instance_name() function had an unused parameter cfg: ConfigParser | None = None. The docstring mentioned it was for "backward compatibility" but:
- The parameter was never used inside the function
- All callers (8 call sites across instance.py, ami.py, snapshot.py, volume.py) called the function without arguments
Changes:
- Removed the unused
cfgparameter from the function signature - Removed the corresponding parameter documentation from the docstring
- Removed the now-unused
from configparser import ConfigParserimport