make source field in nuget trigger optional. Use default feed if blank
[teamcity/dotNetPackagesSupport.git] / nuget-extensions / nuget-commands / src / NuGetTeamCityListPackagesCommand.cs
index 359d9892032e44690a8284b864e7a51bf3d058fb..45fc713ad7c53708e54648795e53b7c8b7f3aafb 100644 (file)
@@ -17,6 +17,9 @@ namespace JetBrains.TeamCity.NuGet.ExtendedCommands
     {\r
       var req = LoadRequests();\r
 \r
+      if (string.IsNullOrWhiteSpace(req.Source))\r
+        req.Source = NuGetConstants.DefaultFeedUrl;\r
+\r
       IEnumerable<IPackage> package = GetAllPackages(req.Source, req.Packages.Select(x => x.Id)).ToList();\r
       var hash = new Dictionary<string, Func<IPackage, bool>>(\r
         req\r