Title: Device is created even when attribute validation fails · Issue #16 · mdevctl/mdevctl · GitHub
Open Graph Title: Device is created even when attribute validation fails · Issue #16 · mdevctl/mdevctl
X Title: Device is created even when attribute validation fails · Issue #16 · mdevctl/mdevctl
Description: When I attempt to create a device with an invalid attribute, I get an error message and a failure response, but the device still gets created. The code suggests that the device should be removed if attribute validation fails. # mdevctl l...
Open Graph Description: When I attempt to create a device with an invalid attribute, I get an error message and a failure response, but the device still gets created. The code suggests that the device should be removed if...
X Description: When I attempt to create a device with an invalid attribute, I get an error message and a failure response, but the device still gets created. The code suggests that the device should be removed if...
Opengraph URL: https://github.com/mdevctl/mdevctl/issues/16
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Device is created even when attribute validation fails","articleBody":"When I attempt to create a device with an invalid attribute, I get an error message and a failure response, but the device still gets created. The code suggests that the device should be removed if attribute validation fails.\r\n\r\n```\r\n# mdevctl list\r\n# cat mdev-json-889VI0 \r\n{\"mdev_type\":\"i915-GVTg_V5_8\",\"start\":\"manual\",\"attrs\":[{\"invalidattr\":\"1\"}]}\r\n# /usr/sbin/mdevctl start -p 0000:00:02.0 --jsonfile ./mdev-json-889VI0 \r\nAttribute invalidattr cannot be set\r\n[root@himantopus libvirt]# echo $?\r\n1\r\n# mdevctl list\r\n7c6f084a-36a5-41cd-9a5a-eb554413ae85 0000:00:02.0 i915-GVTg_V5_8\r\n```","author":{"url":"https://github.com/jonner","@type":"Person","name":"jonner"},"datePublished":"2020-04-17T21:17:26.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/16/mdevctl/issues/16"}
| 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:3cbdc899-febe-50aa-a931-ad47ea63188b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A2E6:3C7D61:46660E:600779:6A553F07 |
| html-safe-nonce | 3eff3b95f610bff69e1c4fd09590bd2b5d827fa1a6e1ebe3e202d969a2df0836 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMkU2OjNDN0Q2MTo0NjY2MEU6NjAwNzc5OjZBNTUzRjA3IiwidmlzaXRvcl9pZCI6IjYxMjE0NTA0NDE2MTAxODI0MDciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 6e5c5280c6dd229b4ff318f22a8a75ac2ad9b872fcff054b25e63e27ab007da9 |
| hovercard-subject-tag | issue:602238270 |
| 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/mdevctl/mdevctl/16/issue_layout |
| twitter:image | https://opengraph.githubassets.com/11dcf033108b18cbd5632805e07648392a5c34122ee2d2030fe32161af15ecf0/mdevctl/mdevctl/issues/16 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/11dcf033108b18cbd5632805e07648392a5c34122ee2d2030fe32161af15ecf0/mdevctl/mdevctl/issues/16 |
| og:image:alt | When I attempt to create a device with an invalid attribute, I get an error message and a failure response, but the device still gets created. The code suggests that the device should be removed if... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jonner |
| hostname | github.com |
| expected-hostname | github.com |
| None | fbd8fce4d63ac394c5405faa20aa50d5c9e56b979ac43ee1b26f8e7c47c4cd89 |
| turbo-cache-control | no-preview |
| go-import | github.com/mdevctl/mdevctl git https://github.com/mdevctl/mdevctl.git |
| octolytics-dimension-user_id | 51067489 |
| octolytics-dimension-user_login | mdevctl |
| octolytics-dimension-repository_id | 188761578 |
| octolytics-dimension-repository_nwo | mdevctl/mdevctl |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 188761578 |
| octolytics-dimension-repository_network_root_nwo | mdevctl/mdevctl |
| 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 | 811f50b757204c6a1b4da0ea780075b3e1cc9e57 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width