Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Be better at finding datacenters from slcli order place #2111

Open
allmightyspiff opened this issue Oct 19, 2023 · 0 comments
Open

Be better at finding datacenters from slcli order place #2111

allmightyspiff opened this issue Oct 19, 2023 · 0 comments
Labels

Comments

@allmightyspiff
Copy link
Member

(py311) ➜  internal-softlayer-cli git:(master) ✗ slcli -v   -C ~/.softlayer-api -v order place AMD_3RD_GEN_EPYC sjc03 --verify --quantity 1 --billing monthly --complex-type=SoftLayer_Container_Product_Order_Hardware_Server  HARD_DRIVE_1_9TB_SSD_SED_5DWPD HARD_DRIVE_1_9TB_SSD_SED_5DWPD HARD_DRIVE_1_9TB_SSD_SED_5DWPD  1U_DUAL_AMD_EPYC_7763_2_4 OS_WINDOWS_2019_FULL_STD_64_BIT 1_GBPS_REDUNDANT_PUBLIC_PRIVATE_NETWORK_UPLINKS  NESSUS_VULNERABILITY_ASSESSMENT_REPORTING  UNLIMITED_SSL_VPN_USERS_1_PPTP_VPN_USER_PER_ACCOUNT  RAM_512_GB_DDR4_2933_ECC_REG  REDUNDANT_POWER_SUPPLY 1_IP_ADDRESS MONITORING_HOST_PING NOTIFICATION_EMAIL_AND_TICKET DISK_CONTROLLER_RAID  BANDWIDTH_0_GB --extras='{"storageGroups":[{"arraySize":1500,"arrayTypeId":2,"hardDrives":[0,1],"partitionTemplateId":947},{"arraySize":1900,"arrayTypeId":11,"hardDrives":[2]}]}'
Calling: SoftLayer_Network_Pod::getAllObjects(id=None, mask='mask[name, datacenterLongName, frontendRouterId, capabilities, datacenterId, backendRouterId, backendRouterName, frontendRouterName]', filter='{'capabilities': {'operation': 'in', 'options': [{'name': 'data', 'value': ['CLOSURE_ANNOUNCED']}]}, 'name': {'operation': 'orderBy', 'options': [{'name': 'sort', 'value': ['DESC']}]}}', args=(), limit=None, offset=None))
Calling: SoftLayer_Location::getDatacenters(id=None, mask='mask[id,longName,name,regions[keyname,description]]', filter='{'regions': {'keyname': {'operation': 'sjc03'}}}', args=(), limit=1, offset=None))
An unexpected error has occured:
Traceback (most recent call last):
  File "/Users/chris/Code/py311/lib/python3.11/site-packages/SoftLayer/CLI/core.py", line 183, in main
    cli.main(**kwargs)
  File "/Users/chris/Code/py311/lib/python3.11/site-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "/Users/chris/Code/py311/lib/python3.11/site-packages/click/core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/chris/Code/py311/lib/python3.11/site-packages/click/core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/chris/Code/py311/lib/python3.11/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/chris/Code/py311/lib/python3.11/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/chris/Code/py311/lib/python3.11/site-packages/click/decorators.py", line 84, in new_func
    return ctx.invoke(f, obj, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/chris/Code/py311/lib/python3.11/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/chris/Code/py311/lib/python3.11/site-packages/SoftLayer/CLI/order/place.py", line 68, in cli
    if location_dc.get('name') in pod.get('name'):
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'in <string>' requires string as left operand, not NoneType

Feel free to report this error as it is likely a bug:
    https://github.com/softlayer/softlayer-python/issues
The following snippet should be able to reproduce the error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant