{"action":"created","issue":{"url":"https://api.github.com/repos/cloudfoundry/bosh-cli/issues/215","repository_url":"https://api.github.com/repos/cloudfoundry/bosh-cli","labels_url":"https://api.github.com/repos/cloudfoundry/bosh-cli/issues/215/labels{/name}","comments_url":"https://api.github.com/repos/cloudfoundry/bosh-cli/issues/215/comments","events_url":"https://api.github.com/repos/cloudfoundry/bosh-cli/issues/215/events","html_url":"https://github.com/cloudfoundry/bosh-cli/issues/215","id":226321783,"node_id":"MDU6SXNzdWUyMjYzMjE3ODM=","number":215,"title":"Question: ops-file path syntax: <any> selector?","user":{"login":"bkrannich","id":12009356,"node_id":"MDQ6VXNlcjEyMDA5MzU2","avatar_url":"https://avatars3.githubusercontent.com/u/12009356?v=4","gravatar_id":"","url":"https://api.github.com/users/bkrannich","html_url":"https://github.com/bkrannich","followers_url":"https://api.github.com/users/bkrannich/followers","following_url":"https://api.github.com/users/bkrannich/following{/other_user}","gists_url":"https://api.github.com/users/bkrannich/gists{/gist_id}","starred_url":"https://api.github.com/users/bkrannich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bkrannich/subscriptions","organizations_url":"https://api.github.com/users/bkrannich/orgs","repos_url":"https://api.github.com/users/bkrannich/repos","events_url":"https://api.github.com/users/bkrannich/events{/privacy}","received_events_url":"https://api.github.com/users/bkrannich/received_events","type":"User","site_admin":false},"labels":[{"id":603292241,"node_id":"MDU6TGFiZWw2MDMyOTIyNDE=","url":"https://api.github.com/repos/cloudfoundry/bosh-cli/labels/ops-file","name":"ops-file","color":"bfdadc","default":false},{"id":1059677576,"node_id":"MDU6TGFiZWwxMDU5Njc3NTc2","url":"https://api.github.com/repos/cloudfoundry/bosh-cli/labels/triaged","name":"triaged","color":"d1adf4","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-05-04T15:35:44Z","updated_at":"2018-11-28T10:32:51Z","closed_at":"2018-10-01T15:17:50Z","author_association":"CONTRIBUTOR","body":"Is there a way to select any element (or even selecting elements with a name that matches a pattern) in the ops-file path syntax?\r\n\r\nMy use case is that I'd like to remove all occurrences of `vm_extensions` from `https://github.com/cloudfoundry/cf-deployment/blob/master/cf-deployment.yml`.\r\n\r\nI'm thinking about something like\r\n```\r\n- type: remove\r\n  path: /instance_groups/*/vm_extensions\r\n```\r\n\r\ninstead of having to do\r\n```\r\n- type: remove\r\n  path: /instance_groups/name=nats/vm_extensions\r\n\r\n- type: remove\r\n  path: /instance_groups/name=etcd/vm_extensions\r\n\r\n...\r\n```\r\nand catching up with changes `instance_group` entries."},"comment":{"url":"https://api.github.com/repos/cloudfoundry/bosh-cli/issues/comments/442399081","html_url":"https://github.com/cloudfoundry/bosh-cli/issues/215#issuecomment-442399081","issue_url":"https://api.github.com/repos/cloudfoundry/bosh-cli/issues/215","id":442399081,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MjM5OTA4MQ==","user":{"login":"ckurdekar","id":34566603,"node_id":"MDQ6VXNlcjM0NTY2NjAz","avatar_url":"https://avatars1.githubusercontent.com/u/34566603?v=4","gravatar_id":"","url":"https://api.github.com/users/ckurdekar","html_url":"https://github.com/ckurdekar","followers_url":"https://api.github.com/users/ckurdekar/followers","following_url":"https://api.github.com/users/ckurdekar/following{/other_user}","gists_url":"https://api.github.com/users/ckurdekar/gists{/gist_id}","starred_url":"https://api.github.com/users/ckurdekar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ckurdekar/subscriptions","organizations_url":"https://api.github.com/users/ckurdekar/orgs","repos_url":"https://api.github.com/users/ckurdekar/repos","events_url":"https://api.github.com/users/ckurdekar/events{/privacy}","received_events_url":"https://api.github.com/users/ckurdekar/received_events","type":"User","site_admin":false},"created_at":"2018-11-28T10:32:51Z","updated_at":"2018-11-28T10:32:51Z","author_association":"NONE","body":"> @bkrannich we are trying to keep ops file functionality very limited. this should help us in general improve core features of bosh director instead of ops files. currently recommend approach would be to configure explicitly which vm_extensions to remove.\r\n> \r\n> i'll give it some more thought for the future of ops files though.\r\n\r\nI am trying to look for remove operation for item if exists. if doesnot exists then should not through error.\r\ne.g. - type: remove\r\n  path: /instance_groups/name=master/jobs/name=docker?\r\nbut i am getting error like\r\nExpected to find exactly one matching array item for path '/instance_groups/name=master/jobs/name=docker' but found 0"}}
{"actor":{"display_login":"ckurdekar"}}