mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-18 21:27:51 +00:00
Allow fleet name aside from fleet slug for importing releases.
Change-type: patch Signed-off-by: Carlo Miguel F. Cruz <carloc@balena.io>
This commit is contained in:
parent
e67e500bf4
commit
8a588706bb
@ -86,15 +86,14 @@ export default class ReleaseImportCmd extends Command {
|
||||
);
|
||||
}
|
||||
|
||||
const application = await balena.models.application.get(params.fleet, {
|
||||
$select: ['id'],
|
||||
});
|
||||
const { getApplication } = await import('../../utils/sdk');
|
||||
const application = (await getApplication(balena, params.fleet)).id;
|
||||
if (application == null) {
|
||||
throw new ExpectedError(`Fleet ${params.fleet} not found`);
|
||||
}
|
||||
await apply({
|
||||
sdk: balena,
|
||||
application: application.id,
|
||||
application,
|
||||
stream: bundle,
|
||||
version: options['override-version'],
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user