{"action":"closed","issue":{"url":"https://api.github.com/repos/genieacs/genieacs/issues/294","repository_url":"https://api.github.com/repos/genieacs/genieacs","labels_url":"https://api.github.com/repos/genieacs/genieacs/issues/294/labels{/name}","comments_url":"https://api.github.com/repos/genieacs/genieacs/issues/294/comments","events_url":"https://api.github.com/repos/genieacs/genieacs/issues/294/events","html_url":"https://github.com/genieacs/genieacs/issues/294","id":313982150,"number":294,"title":"GenieACS creates object with wrong name","user":{"login":"okraits","id":5543887,"avatar_url":"https://avatars0.githubusercontent.com/u/5543887?v=4","gravatar_id":"","url":"https://api.github.com/users/okraits","html_url":"https://github.com/okraits","followers_url":"https://api.github.com/users/okraits/followers","following_url":"https://api.github.com/users/okraits/following{/other_user}","gists_url":"https://api.github.com/users/okraits/gists{/gist_id}","starred_url":"https://api.github.com/users/okraits/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okraits/subscriptions","organizations_url":"https://api.github.com/users/okraits/orgs","repos_url":"https://api.github.com/users/okraits/repos","events_url":"https://api.github.com/users/okraits/events{/privacy}","received_events_url":"https://api.github.com/users/okraits/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-04-13T06:20:56Z","updated_at":"2018-04-16T10:40:02Z","closed_at":"2018-04-16T10:40:02Z","author_association":"NONE","body":"I want to add an interface to a device. Therefor I defined the following object:\r\n\r\n    {\r\n        \"_id\" : \"network-Leitstelle\",\r\n        \"_keys\" : [ \r\n            \"General.LogicalName\"\r\n        ],\r\n        \"General\" : {\r\n            \"LogicalName\" : \"Leitstelle\",\r\n            \"OperatingPhysicalInterfaceName\" : \"tun1\",\r\n            \"OperatingProtocol\" : \"none\"\r\n        }\r\n    }\r\n\r\nI want to add the object with a preset:\r\n\r\n    {\r\n        \"_id\" : \"VR2-105196\",\r\n        \"channel\" : \"\",\r\n        \"weight\" : 1,\r\n        \"precondition\" : \"{\\\"InternetGatewayDevice.DeviceInfo.SerialNumber\\\":\\\"VR2-105196\\\"}\",\r\n        \"configurations\" : [ \r\n            {\r\n                \"type\" : \"add_object\",\r\n                \"name\" : \"InternetGatewayDevice.X_TDT-DE_Interface\",\r\n                \"object\" : \"network-Leitstelle\"\r\n            }, \r\n            {\r\n                \"type\" : \"add_tag\",\r\n                \"tag\" : \"configured\"\r\n            }\r\n        ],\r\n        \"schedule\" : \"\",\r\n        \"events\" : {}\r\n    }\r\n\r\nThe object (interface) is added first and then renamed. The issue appears when renaming the object.\r\nThe object (interface) is renamed to 'undefined', not to 'Leitstelle'.\r\n\r\nThis used to work with GenieACS v1.0 at least."}}
{"actor":{"display_login":"zaidka"}}