fix(XOSAN): ask user to restart toolstacks after installing XOSAN pack (#2404)
This commit is contained in:
committed by
Julien Fontanet
parent
105ede5b1d
commit
86e5206b4d
@@ -171,6 +171,8 @@ const XOSAN_INDIVIDUAL_ACTIONS = [
|
||||
pool.xosanPackInstallationTime > host.agentStartTime
|
||||
)
|
||||
})
|
||||
|
||||
return hostsNeedRestartByPool
|
||||
}
|
||||
)
|
||||
|
||||
@@ -252,7 +254,7 @@ export default class Xosan extends Component {
|
||||
_onSrCreationStarted = () => this.setState({ showNewXosanForm: false })
|
||||
|
||||
render () {
|
||||
const { xosanSrs, noPacksByPool, hostsNeedRestart, poolPredicate } = this.props
|
||||
const { xosanSrs, noPacksByPool, hostsNeedRestartByPool, poolPredicate } = this.props
|
||||
const error = this._getError()
|
||||
|
||||
return <Page header={HEADER} title='xosan' formatTitle>
|
||||
@@ -277,7 +279,7 @@ export default class Xosan extends Component {
|
||||
<Row>
|
||||
<Col>
|
||||
{this.state.showNewXosanForm && <NewXosan
|
||||
hostsNeedRestart={hostsNeedRestart}
|
||||
hostsNeedRestartByPool={hostsNeedRestartByPool}
|
||||
noPacksByPool={noPacksByPool}
|
||||
poolPredicate={poolPredicate}
|
||||
onSrCreationStarted={this._onSrCreationStarted}
|
||||
|
||||
@@ -236,7 +236,7 @@ export default class NewXosan extends Component {
|
||||
} = this.state
|
||||
|
||||
const {
|
||||
hostsNeedRestart,
|
||||
hostsNeedRestartByPool,
|
||||
noPacksByPool,
|
||||
poolPredicate
|
||||
} = this.props
|
||||
@@ -245,6 +245,7 @@ export default class NewXosan extends Component {
|
||||
const hosts = this._getHosts()
|
||||
|
||||
const disableSrCheckbox = this._getDisableSrCheckbox()
|
||||
const hostsNeedRestart = pool !== undefined && hostsNeedRestartByPool !== undefined && hostsNeedRestartByPool[pool.id]
|
||||
|
||||
return <Container>
|
||||
<Row className='mb-1'>
|
||||
|
||||
Reference in New Issue
Block a user