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

@ -342,18 +342,13 @@ try:
from hcloud.volumes.domain import Volume
from hcloud.ssh_keys.domain import SSHKey
from hcloud.servers.domain import Server, ServerCreatePublicNetwork
from hcloud.firewalls.domain import Firewall, FirewallResource
from hcloud.primary_ips.domain import PrimaryIP
from hcloud import APIException
from hcloud.firewalls.domain import FirewallResource
except ImportError:
APIException = None
Volume = None
SSHKey = None
Server = None
ServerCreatePublicNetwork = None
Firewall = None
FirewallResource = None
PrimaryIP = None
class AnsibleHcloudServer(Hcloud):