Skip to content

Commit

Permalink
feat(vm/console): show DVDs in ISO selector
Browse files Browse the repository at this point in the history
Fixes #1880
  • Loading branch information
pdonias committed Jan 16, 2017
1 parent 536e82d commit ffb99a6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/common/iso-device.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,11 @@ import {
export default class IsoDevice extends Component {
_getPredicate = createSelector(
() => this.props.vm.$pool,
poolId => sr => sr.$pool === poolId && sr.SR_type === 'iso'
() => this.props.vm.$container,
(vmPool, vmContainer) => sr =>
sr.$pool === vmPool && // SR is on the same pool
(vmContainer === vmPool || vmContainer === sr.$container) && // SR is on the same host if VM is running
(sr.SR_type === 'iso' || sr.SR_type === 'udev' && !sr.shared && sr.size) // SR is CD or DVD
)

_handleInsert = iso => {
Expand Down

0 comments on commit ffb99a6

Please sign in to comment.