Skip to content

Commit

Permalink
Suspended power_state is "suspended"
Browse files Browse the repository at this point in the history
  • Loading branch information
AllenBW committed Feb 1, 2019
1 parent 60e4a9d commit ba366fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/app/services/poweroperations.service.js
Expand Up @@ -92,7 +92,7 @@ export function PowerOperationsFactory (CollectionsApi, EventNotifications, spri
}

function powerOperationSuspendState (item) {
return getPowerState(item) === 'off'
return getPowerState(item) === 'suspended'
}

function powerOperationTimeoutState (item) {
Expand Down
2 changes: 1 addition & 1 deletion client/app/services/poweroperations.service.spec.js
Expand Up @@ -151,7 +151,7 @@ describe('Service: PowerOperationsFactory', () => {
})
it('Should retrieve the power suspend state', () => {
const testVm = {
'power_state': 'off'
'power_state': 'suspended'
}
const testPowerState = PowerOperations.powerOperationSuspendState(testVm)
expect(testPowerState).to.eq(true)
Expand Down

0 comments on commit ba366fd

Please sign in to comment.