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:
parent
e218306028
commit
43ae035040
27 changed files with 2 additions and 130 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue