Skip to content

Commit 6354b20

Browse files
committed
refactor: adds connectedStatus and isExpired for scratchOrgs --json :(
1 parent 7d4a88b commit 6354b20

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/shared/orgListUtil.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,9 @@ export class OrgListUtil {
235235
scratchOrgInfo.edition = updatedOrgInfo.Edition;
236236
scratchOrgInfo.status = updatedOrgInfo.Status;
237237
scratchOrgInfo.expirationDate = updatedOrgInfo.ExpirationDate;
238+
scratchOrgInfo.isExpired = updatedOrgInfo.Status === 'Deleted';
239+
// the old toolbelt code always said Unknown. I'd love to get rid of it.
240+
scratchOrgInfo.connectedStatus = 'Unknown';
238241
} else {
239242
const logger = await OrgListUtil.retrieveLogger();
240243
logger.warn(`Can't find ${scratchOrgInfo.username} in the updated contents`);

0 commit comments

Comments
 (0)