Skip to content

listOrphanedDisks.py : TypeError: 'NoneType' object is not iterable #138

@aksharbarot

Description

@aksharbarot

Hello!

While running Orphaned disks, noticed "TypeError: 'NoneType' object is not iterable" full output pasted below,

[root@test cloudstackOps-master]# ./listOrphanedDisks.py --zone Test-LAB-IND -c config
Welcome to CloudStackOps
Warning: You are NOT running inside screen/tmux. Please start a screen/tmux session to keep commands running in case you get disconnected!

Note: Trying to use API credentials from CloudMonkey profile 'config'
Warning: Cannot read or parse CloudMonkey profile 'config'. Trying local config file..
Note: Trying to use API credentials from local config profile 'config'
Note: Connected to 'https://example.com:8443/client/api'

/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)

Traceback (most recent call last):
File "./listOrphanedDisks.py", line 153, in
storagepools = [y for x in storagepools for y in x]
TypeError: 'NoneType' object is not iterable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions