Skip to content

Commit 1509a21

Browse files
committed
2 parents 76b2880 + 17c419c commit 1509a21

File tree

4 files changed

+17
-3
lines changed

4 files changed

+17
-3
lines changed

server/src/com/cloud/api/query/dao/HostJoinDaoImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public HostResponse newHostResponse(HostJoinVO host, EnumSet<HostDetails> detail
7777
hostResponse.setCapabilities(host.getCapabilities());
7878
hostResponse.setClusterId(host.getClusterUuid());
7979
hostResponse.setCpuNumber(host.getCpus());
80-
hostResponse.setZoneId(host.getUuid());
80+
hostResponse.setZoneId(host.getZoneUuid());
8181
hostResponse.setDisconnectedOn(host.getDisconnectedOn());
8282
hostResponse.setHypervisor(host.getHypervisorType());
8383
hostResponse.setHostType(host.getType());

setup/db/create-schema.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1332,6 +1332,7 @@ CREATE TABLE `cloud`.`alert` (
13321332
`last_sent` DATETIME NULL COMMENT 'Last time the alert was sent',
13331333
`resolved` DATETIME NULL COMMENT 'when the alert status was resolved (available memory no longer at critical level, etc.)',
13341334
PRIMARY KEY (`id`),
1335+
INDEX `last_sent` (`last_sent` DESC),
13351336
CONSTRAINT `uc_alert__uuid` UNIQUE (`uuid`)
13361337
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
13371338

setup/db/db/schema-40to410.sql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ ALTER TABLE `cloud`.`inline_load_balancer_nic_map` DROP COLUMN load_balancer_id;
7777
ALTER TABLE upload ADD uuid VARCHAR(40);
7878
ALTER TABLE async_job modify job_cmd VARCHAR(255);
7979

80+
ALTER TABLE `cloud`.`alert` ADD INDEX `last_sent` (`last_sent` DESC) ;
81+
8082
-- populate uuid column with db id if uuid is null
8183
UPDATE `cloud`.`account` set uuid=id WHERE uuid is NULL;
8284
UPDATE `cloud`.`alert` set uuid=id WHERE uuid is NULL;

ui/scripts/ui-custom/instanceWizard.js

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -860,8 +860,19 @@
860860

861861
// Previous button
862862
if ($target.closest('div.button.previous').size()) {
863-
var index = $steps.filter(':visible').index();
864-
if (index) showStep(index);
863+
var $step = $steps.filter(':visible');
864+
var $networkStep = $steps.filter('.network');
865+
var index = $step.index();
866+
867+
$networkStep.removeClass('next-use-security-groups');
868+
869+
if (index) {
870+
if (index == $steps.size() - 1 && $networkStep.hasClass('next-use-security-groups')) {
871+
showStep(5);
872+
} else {
873+
showStep(index);
874+
}
875+
}
865876

866877
return false;
867878
}

0 commit comments

Comments
 (0)