Include instance_id in host edit request

This commit is contained in:
Jake McDermott 2020-07-09 11:13:37 -04:00
parent d0ac028265
commit ddbe20d41b
No known key found for this signature in database
GPG Key ID: 0E56ED990CDFCB4F

View File

@ -26,6 +26,9 @@
description: $scope.description,
enabled: $scope.host.enabled
};
if (typeof $scope.host.instance_id !== 'undefined') {
host.instance_id = $scope.host.instance_id;
}
HostsService.put(host).then(function(){
$state.go('.', null, {reload: true});
});