mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
remove unused import and unused variable disk_size (#33741)
This commit is contained in:
parent
92c5b758f8
commit
99abe24d74
1 changed files with 0 additions and 10 deletions
|
@ -144,7 +144,6 @@ options:
|
|||
requirements:
|
||||
- python >= 2.6
|
||||
- linode-python
|
||||
- pycurl
|
||||
author:
|
||||
- Vincent Viallet (@zbal)
|
||||
notes:
|
||||
|
@ -248,12 +247,6 @@ EXAMPLES = '''
|
|||
import os
|
||||
import time
|
||||
|
||||
try:
|
||||
import pycurl
|
||||
HAS_PYCURL = True
|
||||
except ImportError:
|
||||
HAS_PYCURL = False
|
||||
|
||||
try:
|
||||
from linode import api as linode_api
|
||||
HAS_LINODE = True
|
||||
|
@ -319,7 +312,6 @@ def linodeServers(module, api, state, name,
|
|||
disks = []
|
||||
configs = []
|
||||
jobs = []
|
||||
disk_size = 0
|
||||
|
||||
# See if we can match an existing server details with the provided linode_id
|
||||
if linode_id:
|
||||
|
@ -597,8 +589,6 @@ def main():
|
|||
),
|
||||
)
|
||||
|
||||
if not HAS_PYCURL:
|
||||
module.fail_json(msg='pycurl required for this module')
|
||||
if not HAS_LINODE:
|
||||
module.fail_json(msg='linode-python required for this module')
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue