1
0
Fork 0
mirror of https://github.com/ansible-collections/hetzner.hcloud.git synced 2026-02-04 08:01:49 +00:00

lint: fix unused-import errors (#195)

The linting rule `unused-import` was recently activated in ansible-test.

This commit removes all unused imports to satify the linting rule.
This commit is contained in:
Julian Tölle 2023-03-31 09:01:22 +02:00 committed by GitHub
parent e218306028
commit 43ae035040
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
27 changed files with 2 additions and 130 deletions

View file

@ -144,10 +144,8 @@ from ansible.module_utils._text import to_native
from ansible_collections.hetzner.hcloud.plugins.module_utils.hcloud import Hcloud
try:
from hcloud import APIException
from hcloud.load_balancers.domain import LoadBalancerTarget, LoadBalancerTargetLabelSelector, LoadBalancerTargetIP
except ImportError:
APIException = None
LoadBalancerTarget = None
LoadBalancerTargetLabelSelector = None
LoadBalancerTargetIP = None