Skip to content

Instantly share code, notes, and snippets.

@zioproto
Created May 29, 2017 07:38
Show Gist options
  • Save zioproto/270adcf8bdecc603735d033e301bd40a to your computer and use it in GitHub Desktop.
Save zioproto/270adcf8bdecc603735d033e301bd40a to your computer and use it in GitHub Desktop.
Workaround for bad defaults in Horizon Newton
diff --git a/openstack_dashboard/dashboards/project/static/dashboard/project/workflow/launch-instance/source/source.controller.js b/openstack_dashboard/dashboards/project/static/dashboard/project/workflow/launch-instance/source/source.controller.js
index 391b8e7..42a8f50 100644
--- a/openstack_dashboard/dashboards/project/static/dashboard/project/workflow/launch-instance/source/source.controller.js
+++ b/openstack_dashboard/dashboards/project/static/dashboard/project/workflow/launch-instance/source/source.controller.js
@@ -419,7 +419,7 @@
ctrl.currentBootSource = selectedSource;
if ((selectedSource === bootSourceTypes.IMAGE ||
selectedSource === bootSourceTypes.INSTANCE_SNAPSHOT) && $scope.model.volumeBootable) {
- $scope.model.newInstanceSpec.vol_create = true;
+ $scope.model.newInstanceSpec.vol_create = false;
} else {
$scope.model.newInstanceSpec.vol_create = false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment