clean some codes.
This commit is contained in:
Родитель
eb86fbf97d
Коммит
28efdb81d1
|
@ -73,8 +73,7 @@ namespace IncidentConsumer
|
|||
{
|
||||
Stream dataObjects = response.Content.ReadAsStreamAsync().Result;
|
||||
StreamReader reader = new StreamReader(dataObjects);
|
||||
string responseObj = reader.ReadToEnd();
|
||||
return responseObj;
|
||||
return reader.ReadToEnd();
|
||||
}
|
||||
|
||||
private static string DoPUT(string URI, string body, String token, ILogger log)
|
||||
|
@ -89,8 +88,7 @@ namespace IncidentConsumer
|
|||
client.DefaultRequestHeaders.Add("Authorization", "Bearer " + token);
|
||||
client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
|
||||
HttpResponseMessage response = client.PutAsync(URI, jsonContent).Result;
|
||||
string responseObj = GetResponseStream(response);
|
||||
return responseObj;
|
||||
return GetResponseStream(response);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
|
|
@ -233,8 +233,7 @@ namespace Helios2Sentinel
|
|||
try
|
||||
{
|
||||
var secretClient = new SecretClient(new Uri(kvUri), new DefaultAzureCredential());
|
||||
var secret = secretClient.GetSecret(secretName);
|
||||
return secret.Value.Value;
|
||||
return secretClient.GetSecret(secretName).Value.Value;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
|
|
@ -16,6 +16,7 @@ def get_function_name_by_prefix(funNamePrefix):
|
|||
|
||||
def publish_function_name_by_prefix(funNamePrefix, subFolder):
|
||||
function_name = get_function_name_by_prefix(funNamePrefix)
|
||||
subprocess.run(['dotnet', 'clean'], cwd=subFolder)
|
||||
subprocess.run(['func', 'azure', 'functionapp', 'publish', function_name, '--force'], cwd=subFolder)
|
||||
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче