@@ -1082,6 +1082,15 @@ public static bool TryConvertFromContainerRegistryJson(
1082
1082
{ "NormalizedVersion" , metadata [ "NormalizedVersion" ] . ToString ( ) }
1083
1083
} ;
1084
1084
1085
+ ParseHttpMetadataType ( metadata [ "Tags" ] as string [ ] , out ArrayList commandNames , out ArrayList cmdletNames , out ArrayList dscResourceNames ) ;
1086
+ var resourceHashtable = new Hashtable {
1087
+ { nameof ( PSResourceInfo . Includes . Command ) , new PSObject ( commandNames ) } ,
1088
+ { nameof ( PSResourceInfo . Includes . Cmdlet ) , new PSObject ( cmdletNames ) } ,
1089
+ { nameof ( PSResourceInfo . Includes . DscResource ) , new PSObject ( dscResourceNames ) }
1090
+ } ;
1091
+
1092
+ var includes = new ResourceIncludes ( resourceHashtable ) ;
1093
+
1085
1094
psGetInfo = new PSResourceInfo (
1086
1095
additionalMetadata : additionalMetadataHashtable ,
1087
1096
author : metadata [ "Authors" ] as String ,
@@ -1090,7 +1099,7 @@ public static bool TryConvertFromContainerRegistryJson(
1090
1099
dependencies : metadata [ "Dependencies" ] as Dependency [ ] ,
1091
1100
description : metadata [ "Description" ] as String ,
1092
1101
iconUri : null ,
1093
- includes : null ,
1102
+ includes : includes ,
1094
1103
installedDate : null ,
1095
1104
installedLocation : null ,
1096
1105
isPrerelease : ( bool ) metadata [ "IsPrerelease" ] ,
@@ -1709,6 +1718,12 @@ private static ResourceType ParseHttpMetadataType(
1709
1718
dscResourceNames = new ArrayList ( ) ;
1710
1719
1711
1720
ResourceType pkgType = ResourceType . Module ;
1721
+
1722
+ if ( tags == null )
1723
+ {
1724
+ return pkgType ;
1725
+ }
1726
+
1712
1727
foreach ( string tag in tags )
1713
1728
{
1714
1729
if ( String . Equals ( tag , "PSScript" , StringComparison . InvariantCultureIgnoreCase ) )
0 commit comments