mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-31 13:29:08 -07: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:
|
requirements:
|
||||||
- python >= 2.6
|
- python >= 2.6
|
||||||
- linode-python
|
- linode-python
|
||||||
- pycurl
|
|
||||||
author:
|
author:
|
||||||
- Vincent Viallet (@zbal)
|
- Vincent Viallet (@zbal)
|
||||||
notes:
|
notes:
|
||||||
|
@ -248,12 +247,6 @@ EXAMPLES = '''
|
||||||
import os
|
import os
|
||||||
import time
|
import time
|
||||||
|
|
||||||
try:
|
|
||||||
import pycurl
|
|
||||||
HAS_PYCURL = True
|
|
||||||
except ImportError:
|
|
||||||
HAS_PYCURL = False
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from linode import api as linode_api
|
from linode import api as linode_api
|
||||||
HAS_LINODE = True
|
HAS_LINODE = True
|
||||||
|
@ -319,7 +312,6 @@ def linodeServers(module, api, state, name,
|
||||||
disks = []
|
disks = []
|
||||||
configs = []
|
configs = []
|
||||||
jobs = []
|
jobs = []
|
||||||
disk_size = 0
|
|
||||||
|
|
||||||
# See if we can match an existing server details with the provided linode_id
|
# See if we can match an existing server details with the provided linode_id
|
||||||
if 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:
|
if not HAS_LINODE:
|
||||||
module.fail_json(msg='linode-python required for this module')
|
module.fail_json(msg='linode-python required for this module')
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue