Title: Be better at finding datacenters from `slcli order place` · Issue #2111 · softlayer/softlayer-python · GitHub
Open Graph Title: Be better at finding datacenters from `slcli order place` · Issue #2111 · softlayer/softlayer-python
X Title: Be better at finding datacenters from `slcli order place` · Issue #2111 · softlayer/softlayer-python
Description: (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_...
Open Graph Description: (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...
X Description: (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...
Opengraph URL: https://github.com/softlayer/softlayer-python/issues/2111
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Be better at finding datacenters from `slcli order place`","articleBody":"```\r\n(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]}]}'\r\nCalling: 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))\r\nCalling: SoftLayer_Location::getDatacenters(id=None, mask='mask[id,longName,name,regions[keyname,description]]', filter='{'regions': {'keyname': {'operation': 'sjc03'}}}', args=(), limit=1, offset=None))\r\nAn unexpected error has occured:\r\nTraceback (most recent call last):\r\n File \"/Users/chris/Code/py311/lib/python3.11/site-packages/SoftLayer/CLI/core.py\", line 183, in main\r\n cli.main(**kwargs)\r\n File \"/Users/chris/Code/py311/lib/python3.11/site-packages/click/core.py\", line 1055, in main\r\n rv = self.invoke(ctx)\r\n ^^^^^^^^^^^^^^^^\r\n File \"/Users/chris/Code/py311/lib/python3.11/site-packages/click/core.py\", line 1657, in invoke\r\n return _process_result(sub_ctx.command.invoke(sub_ctx))\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/Users/chris/Code/py311/lib/python3.11/site-packages/click/core.py\", line 1657, in invoke\r\n return _process_result(sub_ctx.command.invoke(sub_ctx))\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/Users/chris/Code/py311/lib/python3.11/site-packages/click/core.py\", line 1404, in invoke\r\n return ctx.invoke(self.callback, **ctx.params)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/Users/chris/Code/py311/lib/python3.11/site-packages/click/core.py\", line 760, in invoke\r\n return __callback(*args, **kwargs)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/Users/chris/Code/py311/lib/python3.11/site-packages/click/decorators.py\", line 84, in new_func\r\n return ctx.invoke(f, obj, *args, **kwargs)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/Users/chris/Code/py311/lib/python3.11/site-packages/click/core.py\", line 760, in invoke\r\n return __callback(*args, **kwargs)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/Users/chris/Code/py311/lib/python3.11/site-packages/SoftLayer/CLI/order/place.py\", line 68, in cli\r\n if location_dc.get('name') in pod.get('name'):\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\nTypeError: 'in \u003cstring\u003e' requires string as left operand, not NoneType\r\n\r\nFeel free to report this error as it is likely a bug:\r\n https://github.com/softlayer/softlayer-python/issues\r\nThe following snippet should be able to reproduce the error\r\n```","author":{"url":"https://github.com/allmightyspiff","@type":"Person","name":"allmightyspiff"},"datePublished":"2023-10-19T19:02:32.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/2111/softlayer-python/issues/2111"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:25bbf2fe-108b-2e50-ef5c-149d4186963d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8684:3605DD:853977:AA855C:69752A95 |
| html-safe-nonce | 7ed9b2852d95c90d5db913c327d1fa38471b7e35fdd5c16d857428e38855d6ee |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4Njg0OjM2MDVERDo4NTM5Nzc6QUE4NTVDOjY5NzUyQTk1IiwidmlzaXRvcl9pZCI6IjI0NzI2NTYzNjk4MTc0NjMyNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 05c640c060bd18f6c5cbbfd6c24a42c1eaae6a4fe0047bd54ceca5537d666876 |
| hovercard-subject-tag | issue:1952886831 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/softlayer/softlayer-python/2111/issue_layout |
| twitter:image | https://opengraph.githubassets.com/20450757c352cf101089c1e6ac73810e34679006e94b49011fdb257d69fb1040/softlayer/softlayer-python/issues/2111 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/20450757c352cf101089c1e6ac73810e34679006e94b49011fdb257d69fb1040/softlayer/softlayer-python/issues/2111 |
| og:image:alt | (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... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | allmightyspiff |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4a4bf5f4e28041a9d2e5c107d7d20b78b4294ba261cab243b28167c16a623a1f |
| turbo-cache-control | no-preview |
| go-import | github.com/softlayer/softlayer-python git https://github.com/softlayer/softlayer-python.git |
| octolytics-dimension-user_id | 49550 |
| octolytics-dimension-user_login | softlayer |
| octolytics-dimension-repository_id | 622291 |
| octolytics-dimension-repository_nwo | softlayer/softlayer-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 622291 |
| octolytics-dimension-repository_network_root_nwo | softlayer/softlayer-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 488b30e96dfd057fbbe44c6665ccbc030b729dde |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width