Merge pull request #6939 from richard-cox/fix-embedded

Fix the url used to fetch the embedded harvester plugin
This commit is contained in:
Richard Cox 2022-09-20 18:33:24 +01:00 committed by GitHub
commit db6ff43852
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -79,11 +79,11 @@ export default class HciCluster extends ProvCluster {
const pkgName = `${ HARVESTER_NAME }-1.0.3`;
if (uiOfflinePreferred === 'true') {
// Embedded (aka give me the version of the embedded plugin that was in the last release)
const embeddedPath = `dashboard/${ pkgName }/${ pkgName }.umd.min.js`;
// Embedded (aka give me the embedded plugin that was in the last rancher release)
const embeddedPath = `${ pkgName }/${ pkgName }.umd.min.js`;
return {
pkgUrl: process.env.dev ? `${ process.env.api }/${ embeddedPath }` : embeddedPath,
pkgUrl: process.env.dev ? `${ process.env.api }/dashboard/${ embeddedPath }` : embeddedPath,
pkgName
};
}