-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update monitor cmdlet warning message #17129
Conversation
Change log is required. |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
WriteWarningWithTimestamp(formattedMessage); | ||
} | ||
else | ||
string supressWarningOrErrorValue = System.Environment.GetEnvironmentVariable(BreakingChangeAttributeHelper.SUPPRESS_ERROR_OR_WARNING_MESSAGE_ENV_VARIABLE_NAME); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please check line 96 - 101, remove duplicate logic.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done, please check it.
{ | ||
WriteWarning(formattedMessage); | ||
if (topic == "ExecuteCmdlet") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (topic == "ExecuteCmdlet") | |
string formattedMessage = string.Format( | |
CultureInfo.InvariantCulture, | |
"{0}{1}{2}", | |
string.IsNullOrEmpty(cmdletName)?cmdletName:"["+cmdletName+"] ", | |
string.IsNullOrEmpty(topic)?topic:topic+": ", | |
message); | |
if (withTimeStamp) | |
{ | |
WriteWarningWithTimestamp(formattedMessage); | |
} | |
else | |
{ | |
WriteWarning(formattedMessage); | |
} |
WriteWarningWithTimestamp("The namespace for all the model classes will change from Microsoft.Azure.Management.Monitor.Management.Models to Microsoft.Azure.Management.Monitor.Models in future releases."); | ||
WriteWarningWithTimestamp("The namespace for output classes will be uniform for all classes in future releases to make it independent of modifications in the model classes."); | ||
} | ||
this.WriteIdentifiedWarning( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WriteIdentifiedWarning("The namespace for all the model classes will change from Microsoft.Azure.Management.Monitor.Management.Models to Microsoft.Azure.Management.Monitor.Models in future releases.");
WriteIdentifiedWarning("The namespace for output classes will be uniform for all classes in future releases to make it independent of modifications in the model classes.");
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please polish code
Done |
It is good to me. |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
Update monitor cmdlet warning message
#17013 (comment)