File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
src/Certify.Core/Management/CertifyManager Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -264,6 +264,9 @@ private async Task EnsureMgmtHubConnection()
264264 mgmtHubUri = $ "{ api } /{ endpoint } ";
265265 }
266266
267+ // if hub url has resolved to "/", remove trailing slash and continue with empty string
268+ mgmtHubUri = mgmtHubUri ? . TrimEnd ( '/' ) ;
269+
267270 if ( ! string . IsNullOrWhiteSpace ( mgmtHubUri ) )
268271 {
269272 if ( string . IsNullOrWhiteSpace ( _mgmtHubJoiningToken ) )
@@ -311,7 +314,7 @@ private async Task EnsureMgmtHubConnection()
311314 hasWarning : true
312315 ) ;
313316
314- _serviceLog . Error ( $ "Hub joining secret invalid or not found. ") ;
317+ _serviceLog . Error ( $ "Hub joining secret invalid or not found while attempting to join { mgmtHubUri } ") ;
315318 return ;
316319 }
317320 }
You can’t perform that action at this time.
0 commit comments