Skip to content

Commit

Permalink
fix: ignore call home from dev env MyClouds
Browse files Browse the repository at this point in the history
  • Loading branch information
mvayngrib committed Jul 30, 2018
1 parent 83b504c commit 0cef5a2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/in-house-bot/deployment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -596,6 +596,11 @@ export class Deployment {

public handleCallHome = async (report: ICallHomePayload) => {
const { deploymentUUID, apiUrl, org, identity, stackId, version, adminEmail } = report
if (utils.isLocalUrl(apiUrl)) {
this.logger.info('ignoring call home from dev env MyCloud', report)
return true
}

let childDeployment
if (deploymentUUID) {
try {
Expand Down
2 changes: 1 addition & 1 deletion src/test/in-house-bot/deployment.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ test('deployment by referral', loudAsync(async (t) => {
const child = createBotInRegion({ region })
sandbox.stub(child.stackUtils, 'getCurrentAdminEmail').resolves(conf.adminEmail)

const childUrl = 'childurl'
const childUrl = 'http://tradle.somewhereoverthe.com'
child.serviceMap.RestApi.ApiGateway.url = childUrl

const parentDeployment = new Deployment({
Expand Down

0 comments on commit 0cef5a2

Please sign in to comment.