webpack/components/extensions/HostDetails/Cards/ContentViewDetailsCard/HostContentViewActions.js in katello-4.8.4 vs webpack/components/extensions/HostDetails/Cards/ContentViewDetailsCard/HostContentViewActions.js in katello-4.9.0.rc1

- old
+ new

@@ -1,9 +1,10 @@ import { translate as __ } from 'foremanReact/common/I18n'; import { API_OPERATIONS, put } from 'foremanReact/redux/API'; import { errorToast } from '../../../../../scenes/Tasks/helpers'; import { foremanApi } from '../../../../../services/api'; +import { runCommand } from '../../Tabs/RemoteExecutionActions'; import HOST_CV_AND_ENV_KEY from './HostContentViewConstants'; const updateHostContentViewAndEnvironment = (params, hostId, handleSuccess, handleError) => put({ type: API_OPERATIONS.PUT, key: HOST_CV_AND_ENV_KEY, @@ -12,8 +13,15 @@ handleSuccess, handleError, errorToast, params, }); + +export const runSubmanRepos = + (hostname, handleSuccess) => runCommand({ + hostname, + command: 'subscription-manager repos', + handleSuccess, + }); export default updateHostContentViewAndEnvironment;