@@ -75,7 +75,7 @@ public ContainerRegistryServerAPICalls(PSRepositoryInfo repository, PSCmdlet cmd
75
75
76
76
#endregion
77
77
78
- #region Overriden Methods
78
+ #region Overridden Methods
79
79
80
80
/// <summary>
81
81
/// Find method which allows for searching for all packages from a repository and returns latest version for each.
@@ -126,7 +126,7 @@ public override FindResults FindCommandOrDscResource(string[] tags, bool include
126
126
/// Find method which allows for searching for single name and returns latest version.
127
127
/// Name: no wildcard support
128
128
/// Examples: Search "PowerShellGet"
129
- /// Implementation Note: Need to filter further for latest version (prerelease or non-prerelease dependening on user preference)
129
+ /// Implementation Note: Need to filter further for latest version (prerelease or non-prerelease depending on user preference)
130
130
/// </summary>
131
131
public override FindResults FindName ( string packageName , bool includePrerelease , ResourceType type , out ErrorRecord errRecord )
132
132
{
@@ -451,12 +451,12 @@ internal string GetContainerRegistryAccessToken(bool needCatalogAccess, out Erro
451
451
/// <summary>
452
452
/// Checks if container registry repository is unauthenticated.
453
453
/// </summary>
454
- internal bool IsContainerRegistryUnauthenticated ( string containerRegistyUrl , bool needCatalogAccess , out ErrorRecord errRecord , out string anonymousAccessToken )
454
+ internal bool IsContainerRegistryUnauthenticated ( string containerRegistryUrl , bool needCatalogAccess , out ErrorRecord errRecord , out string anonymousAccessToken )
455
455
{
456
456
_cmdletPassedIn . WriteDebug ( "In ContainerRegistryServerAPICalls::IsContainerRegistryUnauthenticated()" ) ;
457
457
errRecord = null ;
458
458
anonymousAccessToken = string . Empty ;
459
- string endpoint = $ "{ containerRegistyUrl } /v2/";
459
+ string endpoint = $ "{ containerRegistryUrl } /v2/";
460
460
HttpResponseMessage response ;
461
461
try
462
462
{
@@ -497,7 +497,7 @@ internal bool IsContainerRegistryUnauthenticated(string containerRegistyUrl, boo
497
497
498
498
_cmdletPassedIn . WriteDebug ( $ "Getting anonymous access token from the realm: { url } ") ;
499
499
500
- // we dont check the errorrecord here because we want to return false if we get a 401 and not throw an error
500
+ // we don't check the error record here because we want to return false if we get a 401 and not throw an error
501
501
_cmdletPassedIn . WriteDebug ( $ "Getting anonymous access token from the realm: { url } ") ;
502
502
ErrorRecord errRecordTemp = null ;
503
503
@@ -644,7 +644,7 @@ internal JObject GetContainerRegistryRepositoryManifest(string packageName, stri
644
644
}
645
645
646
646
/// <summary>
647
- /// Get the blob for the package (ie repository in container registry terms) from the repositroy (ie registry in container registry terms)
647
+ /// Get the blob for the package (ie repository in container registry terms) from the repository (ie registry in container registry terms)
648
648
/// Used when installing the package
649
649
/// </summary>
650
650
internal async Task < HttpContent > GetContainerRegistryBlobAsync ( string packageName , string digest , string containerRegistryAccessToken )
@@ -916,7 +916,7 @@ internal async Task<HttpResponseMessage> UploadManifest(string packageName, stri
916
916
}
917
917
catch ( HttpRequestException e )
918
918
{
919
- throw new HttpRequestException ( "Error occured while trying to create manifest: " + e . Message ) ;
919
+ throw new HttpRequestException ( "Error occurred while trying to create manifest: " + e . Message ) ;
920
920
}
921
921
}
922
922
@@ -931,7 +931,7 @@ internal async Task<HttpContent> GetHttpContentResponseJObject(string url, Colle
931
931
}
932
932
catch ( HttpRequestException e )
933
933
{
934
- throw new HttpRequestException ( "Error occured while trying to retrieve response: " + e . Message ) ;
934
+ throw new HttpRequestException ( "Error occurred while trying to retrieve response: " + e . Message ) ;
935
935
}
936
936
}
937
937
@@ -1074,7 +1074,7 @@ internal async Task<HttpResponseHeaders> GetHttpResponseHeader(string url, HttpM
1074
1074
}
1075
1075
catch ( HttpRequestException e )
1076
1076
{
1077
- throw new HttpRequestException ( "Error occured while trying to retrieve response header: " + e . Message ) ;
1077
+ throw new HttpRequestException ( "Error occurred while trying to retrieve response header: " + e . Message ) ;
1078
1078
}
1079
1079
}
1080
1080
@@ -1117,7 +1117,7 @@ private async Task<HttpContent> SendContentRequestAsync(HttpRequestMessage messa
1117
1117
}
1118
1118
catch ( Exception e )
1119
1119
{
1120
- throw new SendRequestException ( $ "Error occured while sending request to Container Registry server for content with: { e . GetType ( ) } '{ e . Message } '", e ) ;
1120
+ throw new SendRequestException ( $ "Error occurred while sending request to Container Registry server for content with: { e . GetType ( ) } '{ e . Message } '", e ) ;
1121
1121
}
1122
1122
}
1123
1123
@@ -1133,7 +1133,7 @@ private async Task<JObject> SendRequestAsync(HttpRequestMessage message)
1133
1133
}
1134
1134
catch ( Exception e )
1135
1135
{
1136
- throw new SendRequestException ( $ "Error occured while sending request to Container Registry server with: { e . GetType ( ) } '{ e . Message } '", e ) ;
1136
+ throw new SendRequestException ( $ "Error occurred while sending request to Container Registry server with: { e . GetType ( ) } '{ e . Message } '", e ) ;
1137
1137
}
1138
1138
1139
1139
switch ( response . StatusCode )
@@ -1233,7 +1233,7 @@ private async Task<HttpResponseHeaders> SendRequestHeaderAsync(HttpRequestMessag
1233
1233
}
1234
1234
catch ( HttpRequestException e )
1235
1235
{
1236
- throw new HttpRequestException ( "Error occured while trying to retrieve response: " + e . Message ) ;
1236
+ throw new HttpRequestException ( "Error occurred while trying to retrieve response: " + e . Message ) ;
1237
1237
}
1238
1238
}
1239
1239
@@ -1264,7 +1264,7 @@ private async Task<HttpResponseMessage> PutRequestAsync(string url, string fileP
1264
1264
}
1265
1265
catch ( Exception e )
1266
1266
{
1267
- throw new SendRequestException ( $ "Error occured while uploading module to ContainerRegistry: { e . GetType ( ) } '{ e . Message } '", e ) ;
1267
+ throw new SendRequestException ( $ "Error occurred while uploading module to ContainerRegistry: { e . GetType ( ) } '{ e . Message } '", e ) ;
1268
1268
}
1269
1269
}
1270
1270
@@ -1552,7 +1552,7 @@ private bool TryCreateAndUploadManifest(string fullNupkgFile,
1552
1552
catch ( Exception e )
1553
1553
{
1554
1554
errRecord = new ErrorRecord (
1555
- new UploadBlobException ( $ "Error occured while uploading package manifest to ContainerRegistry: { e . GetType ( ) } '{ e . Message } '", e ) ,
1555
+ new UploadBlobException ( $ "Error occurred while uploading package manifest to ContainerRegistry: { e . GetType ( ) } '{ e . Message } '", e ) ,
1556
1556
"PackageManifestUploadError" ,
1557
1557
ErrorCategory . InvalidResult ,
1558
1558
_cmdletPassedIn ) ;
@@ -1741,7 +1741,7 @@ internal async Task<string> GetStartUploadBlobLocation(string packageName, strin
1741
1741
}
1742
1742
catch ( Exception e )
1743
1743
{
1744
- throw new UploadBlobException ( $ "Error occured while starting to upload the blob location used for publishing to ContainerRegistry: { e . GetType ( ) } '{ e . Message } '", e ) ;
1744
+ throw new UploadBlobException ( $ "Error occurred while starting to upload the blob location used for publishing to ContainerRegistry: { e . GetType ( ) } '{ e . Message } '", e ) ;
1745
1745
}
1746
1746
}
1747
1747
@@ -1759,7 +1759,7 @@ internal async Task<HttpResponseMessage> EndUploadBlob(string location, string f
1759
1759
}
1760
1760
catch ( Exception e )
1761
1761
{
1762
- throw new UploadBlobException ( $ "Error occured while uploading module to ContainerRegistry: { e . GetType ( ) } '{ e . Message } '", e ) ;
1762
+ throw new UploadBlobException ( $ "Error occurred while uploading module to ContainerRegistry: { e . GetType ( ) } '{ e . Message } '", e ) ;
1763
1763
}
1764
1764
}
1765
1765
0 commit comments