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.
2 parents aa5e8cb + 8d90a35 commit 04bca53Copy full SHA for 04bca53
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