remove unused import and unused variable disk_size (#33741)

pull/33868/head
Will Weber 7 years ago committed by John R Barker
parent 92c5b758f8
commit 99abe24d74

@ -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…
Cancel
Save