mirror of
https://github.com/codex-storage/cs-codex-dist-tests.git
synced 2025-02-03 07:43:52 +00:00
Update bot for deployment without codex nodes.
This commit is contained in:
parent
ec03be6936
commit
6d7309cc9c
@ -136,9 +136,6 @@ namespace BiblioTech.Commands
|
||||
protected override async Task onSubCommand(CommandContext context)
|
||||
{
|
||||
var deployments = Program.DeploymentFilesMonitor.GetDeployments();
|
||||
|
||||
//todo shows old deployments
|
||||
|
||||
if (!deployments.Any())
|
||||
{
|
||||
await context.Followup("No deployments available.");
|
||||
@ -269,6 +266,11 @@ namespace BiblioTech.Commands
|
||||
await context.Followup("No deployment found.");
|
||||
return default;
|
||||
}
|
||||
if (deployment.CodexInstances == null || !deployment.CodexInstances.Any())
|
||||
{
|
||||
await context.Followup("No codex instances were deployed.");
|
||||
return default;
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
|
@ -62,9 +62,6 @@ namespace BiblioTech
|
||||
private bool IsDeploymentOk(CodexDeployment? deploy)
|
||||
{
|
||||
if (deploy == null) return false;
|
||||
if (deploy.CodexInstances == null) return false;
|
||||
if (!deploy.CodexInstances.Any()) return false;
|
||||
if (!deploy.CodexInstances.All(i => i.Containers != null && i.Info != null)) return false;
|
||||
if (deploy.GethDeployment == null) return false;
|
||||
if (deploy.GethDeployment.Containers == null) return false;
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user