{"action":"closed","issue":{"url":"https://api.github.com/repos/lxc/lxd/issues/403","labels_url":"https://api.github.com/repos/lxc/lxd/issues/403/labels{/name}","comments_url":"https://api.github.com/repos/lxc/lxd/issues/403/comments","events_url":"https://api.github.com/repos/lxc/lxd/issues/403/events","html_url":"https://github.com/lxc/lxd/issues/403","id":62506410,"number":403,"title":"Returning image hash after import","user":{"login":"jensg-st","id":10879611,"avatar_url":"https://avatars.githubusercontent.com/u/10879611?v=3","gravatar_id":"","url":"https://api.github.com/users/jensg-st","html_url":"https://github.com/jensg-st","followers_url":"https://api.github.com/users/jensg-st/followers","following_url":"https://api.github.com/users/jensg-st/following{/other_user}","gists_url":"https://api.github.com/users/jensg-st/gists{/gist_id}","starred_url":"https://api.github.com/users/jensg-st/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jensg-st/subscriptions","organizations_url":"https://api.github.com/users/jensg-st/orgs","repos_url":"https://api.github.com/users/jensg-st/repos","events_url":"https://api.github.com/users/jensg-st/events{/privacy}","received_events_url":"https://api.github.com/users/jensg-st/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/lxc/lxd/labels/Easy","name":"Easy","color":"009800"},{"url":"https://api.github.com/repos/lxc/lxd/labels/Specification","name":"Specification","color":"fbca04"}],"state":"closed","locked":false,"assignee":{"login":"stgraber","id":2230599,"avatar_url":"https://avatars.githubusercontent.com/u/2230599?v=3","gravatar_id":"","url":"https://api.github.com/users/stgraber","html_url":"https://github.com/stgraber","followers_url":"https://api.github.com/users/stgraber/followers","following_url":"https://api.github.com/users/stgraber/following{/other_user}","gists_url":"https://api.github.com/users/stgraber/gists{/gist_id}","starred_url":"https://api.github.com/users/stgraber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stgraber/subscriptions","organizations_url":"https://api.github.com/users/stgraber/orgs","repos_url":"https://api.github.com/users/stgraber/repos","events_url":"https://api.github.com/users/stgraber/events{/privacy}","received_events_url":"https://api.github.com/users/stgraber/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/lxc/lxd/milestones/7","html_url":"https://github.com/lxc/lxd/milestones/lxd-0.6","labels_url":"https://api.github.com/repos/lxc/lxd/milestones/7/labels","id":1019821,"number":7,"title":"lxd-0.6","description":"","creator":{"login":"stgraber","id":2230599,"avatar_url":"https://avatars.githubusercontent.com/u/2230599?v=3","gravatar_id":"","url":"https://api.github.com/users/stgraber","html_url":"https://github.com/stgraber","followers_url":"https://api.github.com/users/stgraber/followers","following_url":"https://api.github.com/users/stgraber/following{/other_user}","gists_url":"https://api.github.com/users/stgraber/gists{/gist_id}","starred_url":"https://api.github.com/users/stgraber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stgraber/subscriptions","organizations_url":"https://api.github.com/users/stgraber/orgs","repos_url":"https://api.github.com/users/stgraber/repos","events_url":"https://api.github.com/users/stgraber/events{/privacy}","received_events_url":"https://api.github.com/users/stgraber/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":8,"state":"open","created_at":"2015-03-13T05:26:18Z","updated_at":"2015-04-03T16:21:19Z","due_on":"2015-04-07T04:00:00Z","closed_at":null},"comments":5,"created_at":"2015-03-17T20:11:33Z","updated_at":"2015-04-03T16:21:19Z","closed_at":"2015-04-03T16:21:19Z","body":"I think the import function should return the image hash. Otherwise it will be hard to find the image in the image list, if you have more than 10 images. In particular if you want to set an alias straight after import.\r\n\r\nI still think that the property 'alias' should be used as a 'reserved' property on image import, so I could work with the alias(es) straight after import. I understand that this would merge two logical steps into one kind of transaction, where the second step could fail while the first step, the import, is successful. Nevertheless a \"best effort\" approach while setting aliases here should be good enough, if you don't want to rollback the image import. Can you please share the idea, why you don't like the alias setting during import? "}}