mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-06-06 01:21:39 +00:00
Merge pull request #1960 from balena-os/dont-send-current-name
Do not send name as part of the current state
This commit is contained in:
commit
5db9cd07e4
@ -481,11 +481,7 @@ export async function setTarget(target: TargetState, localSource?: boolean) {
|
|||||||
|
|
||||||
globalEventBus.getInstance().emit('targetStateChanged', target);
|
globalEventBus.getInstance().emit('targetStateChanged', target);
|
||||||
|
|
||||||
const { uuid, apiEndpoint } = await config.getMany([
|
const { uuid, apiEndpoint } = await config.getMany(['uuid', 'apiEndpoint']);
|
||||||
'uuid',
|
|
||||||
'apiEndpoint',
|
|
||||||
'name',
|
|
||||||
]);
|
|
||||||
|
|
||||||
if (!uuid || !target[uuid]) {
|
if (!uuid || !target[uuid]) {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
@ -625,11 +621,7 @@ export async function getCurrentForReport(
|
|||||||
{} as { [appUuid: string]: AppState },
|
{} as { [appUuid: string]: AppState },
|
||||||
);
|
);
|
||||||
|
|
||||||
const { name, uuid, localMode } = await config.getMany([
|
const { uuid, localMode } = await config.getMany(['uuid', 'localMode']);
|
||||||
'name',
|
|
||||||
'uuid',
|
|
||||||
'localMode',
|
|
||||||
]);
|
|
||||||
|
|
||||||
if (!uuid) {
|
if (!uuid) {
|
||||||
throw new InternalInconsistencyError('No uuid found for local device');
|
throw new InternalInconsistencyError('No uuid found for local device');
|
||||||
@ -649,7 +641,6 @@ export async function getCurrentForReport(
|
|||||||
{
|
{
|
||||||
...currentVolatile,
|
...currentVolatile,
|
||||||
...systemInfo,
|
...systemInfo,
|
||||||
name,
|
|
||||||
apps: appsForReport,
|
apps: appsForReport,
|
||||||
},
|
},
|
||||||
(__, key) => omitFromReport.includes(key),
|
(__, key) => omitFromReport.includes(key),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user