We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f0cdf8 commit ccc7c33Copy full SHA for ccc7c33
projects/Unit/TestUpdateSecret.cs
@@ -69,6 +69,13 @@ private bool RabbitMQ380OrHigher()
69
if (properties.TryGetValue("version", out object versionVal))
70
{
71
string versionStr = Encoding.UTF8.GetString((byte[])versionVal);
72
+
73
+ int dashIdx = versionStr.IndexOf('-');
74
+ if (dashIdx > 0)
75
+ {
76
+ versionStr = versionStr.Remove(dashIdx);
77
+ }
78
79
if (Version.TryParse(versionStr, out Version version))
80
81
return version >= new Version(3, 8);
0 commit comments