Skip to content
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

Merge sync node to develop #747

Closed
wants to merge 116 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
116 commits
Select commit Hold shift + click to select a range
5ba27d2
Merge pull request #195 from skalenetwork/beta
dmytrotkk May 22, 2020
508993b
Fix exit code in calc version script
dmytrotkk May 25, 2020
2b840ea
Merge pull request #201 from skalenetwork/fix-calc-version-exit-code-…
dmytrotkk May 25, 2020
b8cc5c5
Merge pull request #307 from skalenetwork/beta
dmytrotkk Sep 16, 2020
c317225
Merge pull request #461 from skalenetwork/beta
dmytrotkk Apr 9, 2021
acc08e0
Merge pull request #499 from skalenetwork/beta
dmytrotkk Jun 18, 2021
e8d0c61
Merge pull request #511 from skalenetwork/beta
dmytrotkk Jul 19, 2021
eef39cd
Merge pull request #534 from skalenetwork/beta
dmytrotkk Sep 23, 2021
dae2330
Merge pull request #536 from skalenetwork/beta
dmytrotkk Sep 23, 2021
7bdadfb
Merge pull request #574 from skalenetwork/beta
dmytrotkk Mar 21, 2022
c6636ef
SKALE-779 Full sync node init cmd
dmytrotkk May 4, 2022
a8c037d
SKALE-779 Add schain name to required params
dmytrotkk May 9, 2022
707c85d
SKALE-779 Add sync node allocation
dmytrotkk May 11, 2022
d80cde5
SKALE-779 Fix flake8.
dmytrotkk May 13, 2022
713f32f
SKALE-779 Fix resource allocation tests
dmytrotkk May 13, 2022
96b2097
SKALE-779 Fix resource allocation tests
dmytrotkk May 13, 2022
274d97d
SKALE-779 Remove unused disk_mountpoint
dmytrotkk May 19, 2022
7f9f008
SKALE-779 Add update-sync cmd, add tests, add sync-cli pipeline, upda…
dmytrotkk May 19, 2022
4f0dfd4
SKALE-779 Fix flake8 errors
dmytrotkk May 19, 2022
8d49171
SKALE-779 Fix sync node build
dmytrotkk May 20, 2022
5bacd8b
Merge pull request #593 from skalenetwork/feature/SKALE-779-full-sync…
dmytrotkk May 20, 2022
d3e57f5
SKALE-779 Fix publish pipeline
dmytrotkk May 20, 2022
4ad5d95
Merge pull request #598 from skalenetwork/feature/SKALE-779-full-sync…
dmytrotkk May 20, 2022
88e2eb6
SKALE-779 Fix sync-node update cmd
dmytrotkk May 20, 2022
224bfa1
Merge pull request #599 from skalenetwork/feature/SKALE-779-full-sync…
dmytrotkk May 20, 2022
927f06c
SKALE-779 Add SSL CLI to sync-node-cli
dmytrotkk Jun 1, 2022
cb7c2f2
Merge pull request #602 from skalenetwork/feature/SKALE-779-full-sync…
dmytrotkk Jun 1, 2022
3a799ce
SKALE-779 Restructure SSL commands
dmytrotkk Jun 2, 2022
c9fedfb
SKALE-779 Fix configs import
dmytrotkk Jun 3, 2022
0e21a8d
Fix SSL import
dmytrotkk Jun 3, 2022
2926055
SKLAE-779 Update ssl test
dmytrotkk Jun 3, 2022
2724a3e
SKALE-779 Fix SSL upload
dmytrotkk Jun 3, 2022
21c0e19
SKALE-779 Fix SSL upload
dmytrotkk Jun 3, 2022
e1610bf
SKALE-799 Fix SSL upload
dmytrotkk Jun 6, 2022
f0adc50
SKALE-779 Fix minor issues
dmytrotkk Jun 7, 2022
25cebac
Fix flake
dmytrotkk Jun 7, 2022
d92148d
Merge pull request #603 from skalenetwork/feature/SKALE-779-full-sync…
dmytrotkk Jun 7, 2022
3bdd0eb
Hotfix: add version and build info commands to sync-node-cli
dmytrotkk Jun 8, 2022
bad57e2
Merge pull request #606 from skalenetwork/feature/SKALE-779-full-sync…
dmytrotkk Jun 8, 2022
76596ff
SKALE-779 Add firwall setup for sync node
dmytrotkk Jun 9, 2022
d9f4334
Add cryptography package, update pyOpenSSL
dmytrotkk Jun 9, 2022
1a30cc3
Mock configure_firewall_rules in tests
dmytrotkk Jun 9, 2022
900f669
Merge pull request #607 from skalenetwork/feature/SKALE-779-full-sync…
dmytrotkk Jun 9, 2022
c50c0f1
Hotfix: add nginx reload to ssl upload
dmytrotkk Jun 21, 2022
6110703
Merge pull request #626 from skalenetwork/feature/SKALE-779-full-sync…
dmytrotkk Jun 21, 2022
64c3bdc
Create btrfs volume without lvmpy for syncnode
badrogger Jul 19, 2022
395d9e6
Fix error message for malformed env config
badrogger Jul 21, 2022
08ff20a
Add command to resize block device
badrogger Jul 25, 2022
bb77dec
Improve logs
badrogger Jul 25, 2022
a414a48
Handle missing filesystem
badrogger Jul 28, 2022
1893d65
Merge branch 'beta' into hotfix-5-stable
badrogger Aug 18, 2022
25149bf
Remove redundant function
badrogger Aug 18, 2022
4f2684f
Merge pull request #644 from skalenetwork/hotfix-5-stable
badrogger Aug 19, 2022
1a7d7c0
Merge branch 'stable' into merge-stable-to-sync
badrogger Sep 22, 2022
8a37aa9
Publish builds for beta-sync-node
badrogger Sep 22, 2022
a690b1e
Merge pull request #661 from skalenetwork/merge-stable-to-sync
badrogger Sep 22, 2022
34bc52d
Merge branch 'beta-sync-node' into no-volume-limits
badrogger Sep 23, 2022
c7b3611
Merge pull request #636 from skalenetwork/no-volume-limits
badrogger Sep 23, 2022
79effcc
Fix filestorage mapping
badrogger Sep 24, 2022
0055fd9
Merge pull request #662 from skalenetwork/fix-filestorage-mapping
badrogger Sep 24, 2022
6adb53d
Pass SKALE_STATE_DIR env to docker-compose
badrogger Sep 25, 2022
3a8f8fc
Merge pull request #663 from skalenetwork/fix-filestorage-mapping
badrogger Sep 25, 2022
396a068
Add new sync node options
dmytrotkk Dec 1, 2022
6714841
Update README with new options
dmytrotkk Dec 1, 2022
c46895a
Bump python version
dmytrotkk Dec 1, 2022
329c40b
Downgrade flake8 to 5.0.4
dmytrotkk Dec 1, 2022
8e11f2a
Hotfix: Remove double types
dmytrotkk Dec 2, 2022
65bf278
Bump python version to 3.8
dmytrotkk Dec 2, 2022
adb6b1d
Fix licence header
dmytrotkk Dec 2, 2022
f39e010
Remove sync node from resource allocation
dmytrotkk Dec 2, 2022
e074e11
Remove sync node from tests
dmytrotkk Dec 2, 2022
c8c5830
Update schain_allocation.yml in tests
dmytrotkk Dec 2, 2022
a9c77c2
Minor changes
dmytrotkk Dec 6, 2022
edfcbda
Remove lock file for node options
dmytrotkk Dec 6, 2022
6cd7056
Fix tests
dmytrotkk Dec 6, 2022
5374021
Merge pull request #680 from skalenetwork/enhancement/add-sync-node-o…
dmytrotkk Dec 7, 2022
21f4278
Increase schain stop timeout to 5 minutes
badrogger Dec 8, 2022
58352f5
Fix flake8
badrogger Dec 8, 2022
a90786f
Merge pull request #685 from skalenetwork/increase-timeout-sync-node
dmytrotkk Dec 14, 2022
ccb6fbd
Fix filestorage endpoint
badrogger Jan 19, 2023
b3cdad1
Small change to trigger build
badrogger Jan 19, 2023
5332bb7
Merge pull request #695 from skalenetwork/fix-fs-endpoint
badrogger Jan 19, 2023
4b1b335
Merge pull request #696 from skalenetwork/beta-sync-node
badrogger Jan 23, 2023
cb28d81
Merge branch 'develop' into merge-develop-to-beta-sync-node
badrogger Feb 6, 2023
2d8adcd
Fix tests
badrogger Feb 9, 2023
49ed7be
Merge branch 'develop' into merge-develop-to-beta-sync-node
badrogger Feb 9, 2023
976d6e6
Remove snapshot_from from init/update sync
badrogger Feb 10, 2023
cba08c2
Merge pull request #701 from skalenetwork/merge-develop-to-beta-sync-…
badrogger Feb 24, 2023
742934e
Merge pull request #707 from skalenetwork/beta-sync-node
badrogger Mar 6, 2023
62db939
Merge 2.3.0 to beta-sync-node
badrogger Jun 16, 2023
46348f6
Fix missing VOLUME_GROUP config param
badrogger Jun 16, 2023
411e78f
Rollback to python 3.8 for 18.04 compatible build
badrogger Jun 19, 2023
76bb02f
Add missing sync param to build script intput
badrogger Jun 19, 2023
70271e8
Fix asset name
badrogger Jun 19, 2023
fb7f349
Add missing lvmpy submodule
badrogger Jun 19, 2023
d24cb30
Fix tests
badrogger Jun 19, 2023
776df9f
Merge pull request #728 from skalenetwork/beta-sync-node-2.3.0
badrogger Jun 19, 2023
a63112a
Fix sync node publish pipeline
badrogger Jun 20, 2023
91302b4
Merge pull request #730 from skalenetwork/fix-sync-node-publish
badrogger Jun 20, 2023
819a262
Fix publish.yml home dir path
badrogger Jun 20, 2023
25b2a8d
Merge pull request #731 from skalenetwork/fix-sync-node-publish
badrogger Jun 20, 2023
e635354
Remove prerelease from sync-node based releases
badrogger Jul 7, 2023
2922850
Merge pull request #732 from skalenetwork/remove-prerelease-from-sync
badrogger Jul 7, 2023
7eac870
Fix update-meta invocation
badrogger Jul 8, 2023
7eb2aae
Trigger build
badrogger Jul 8, 2023
34f9f11
Merge pull request #733 from skalenetwork/fix-update-meta-invokation
badrogger Jul 8, 2023
15069ef
Merge branch 'beta-sync-node' into merge-beta-sync-node-to-stable
badrogger Sep 19, 2023
29701ef
Merge pull request #735 from skalenetwork/merge-beta-sync-node-to-stable
badrogger Sep 19, 2023
8cd70a5
Bump GitPython to 3.1.36
badrogger Sep 19, 2023
a08e52b
Merge pull request #736 from skalenetwork/bump-gitpython
badrogger Sep 19, 2023
101bb18
Merge branch 'beta-sync-node' into bump-gitpython-sync-node-stable
badrogger Sep 19, 2023
bc9ff1c
Merge pull request #737 from skalenetwork/bump-gitpython-sync-node-st…
badrogger Sep 19, 2023
94e41f3
Merge sync-node CLI to develop
dmytrotkk Jan 24, 2024
a968b10
Merge sync-node CLI to develop - fix flake8
dmytrotkk Jan 24, 2024
7921428
Update publish pipeline - remove sync-node branches
dmytrotkk Jan 24, 2024
d6bbb34
Fix test pipeline - update binary check
dmytrotkk Jan 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 65 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@ jobs:
run: |
sudo apt-get update
sudo apt-get install python-setuptools

- name: Set Versions
run: |
bash ./scripts/set_versions_ga.sh

- name: Set release
run: |
if [[ "$BRANCH" == "stable" ]]; then
Expand All @@ -56,7 +58,8 @@ jobs:
run: |
echo "::set-output name=version::$VERSION"
echo "::set-output name=branch::$BRANCH"
build_and_publish:

build_and_publish_normal:
if: github.event.pull_request.merged
needs: create_release
name: Build and publish for ${{ matrix.os }}
Expand All @@ -81,11 +84,11 @@ jobs:
- name: Checkout submodules
run: git submodule update --init

- name: Build binary
- name: Build normal binary
run: |
mkdir ./dist
docker build . -t node-cli-builder
docker run -v /home/ubuntu/dist:/app/dist node-cli-builder scripts/build.sh ${{ needs.create_release.outputs.version }} ${{ needs.create_release.outputs.branch }}
docker run -v /home/ubuntu/dist:/app/dist node-cli-builder scripts/build.sh ${{ needs.create_release.outputs.version }} ${{ needs.create_release.outputs.branch }} normal
ls -altr /home/ubuntu/dist/
docker rm -f $(docker ps -aq)

Expand Down Expand Up @@ -114,3 +117,62 @@ jobs:
asset_path: /home/ubuntu/dist/sha512sum
asset_name: ${{ matrix.asset_name }}.sha512
asset_content_type: text/plain

build_and_publish_sync:
if: github.event.pull_request.merged
needs: create_release
name: Build and publish for ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-20.04
asset_name: skale-${{ needs.create_release.outputs.version }}-Linux-x86_64-sync
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.11
uses: actions/setup-python@v1
with:
python-version: 3.11

- name: Install ubuntu dependencies
if: matrix.os == 'ubuntu-20.04'
run: |
sudo apt-get update

- name: Checkout submodules
run: git submodule update --init

- name: Build sync release binary
run: |
mkdir ./dist
docker build . -t node-cli-builder
docker run -v /home/ubuntu/dist:/app/dist node-cli-builder scripts/build.sh ${{ needs.create_release.outputs.version }} ${{ needs.create_release.outputs.branch }} sync
ls -altr /home/ubuntu/dist/
docker rm -f $(docker ps -aq)

- name: Save sha512sum
run: |
sudo sha512sum /home/ubuntu/dist/${{ matrix.asset_name }} | sudo tee > /dev/null /home/ubuntu/dist/sha512sum

- name: Upload release sync CLI
id: upload-sync-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create_release.outputs.upload_url }}
asset_path: /home/ubuntu/dist/${{ matrix.asset_name }}
asset_name: ${{ matrix.asset_name }}
asset_content_type: application/octet-stream

- name: Upload release sync CLI checksum
id: upload-sync-release-checksum
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create_release.outputs.upload_url }}
asset_path: /home/ubuntu/dist/sha512sum
asset_name: ${{ matrix.asset_name }}.sha512
asset_content_type: text/plain
22 changes: 19 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,34 @@ jobs:
run: |
mkdir ./dist
docker build . -t node-cli-builder
docker run -v /home/ubuntu/dist:/app/dist node-cli-builder scripts/build.sh test test
docker run -v /home/ubuntu/dist:/app/dist node-cli-builder scripts/build.sh test test normal
docker rm -f $(docker ps -aq)

- name: Check build
- name: Check build - normal
run: sudo /home/ubuntu/dist/skale-test-Linux-x86_64

- name: Build binary in Ubuntu 20.04 environment
run: |
scripts/build.sh test test

- name: Check build
- name: Check build - normal
run: sudo /home/ubuntu/dist/skale-test-Linux-x86_64
- name: Build sync binary in Ubuntu 18.04 environment
run: |
mkdir ./dist
docker build . -t node-cli-builder
docker run -v /home/ubuntu/dist:/app/dist node-cli-builder scripts/build.sh test test sync
docker rm -f $(docker ps -aq)

- name: Check build - sync
run: sudo /home/ubuntu/dist/skale-test-Linux-x86_64-sync

- name: Build sync binary in Ubuntu 20.04 environment
run: |
scripts/build.sh test test sync

- name: Check build - sync
run: sudo /home/ubuntu/dist/skale-test-Linux-x86_64-sync

- name: Run tests
run: bash ./scripts/run_tests.sh
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -116,4 +116,7 @@ meta.json
disk_mountpoint.txt
sgx_server_url.txt
resource_allocation.json
conf.json
conf.json
test-env

nginx.conf
101 changes: 91 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,11 @@ SKALE Node CLI, part of the SKALE suite of validator tools, is the command line
2.7 [Logs](#logs-commands)
2.8 [Resources allocation](#resources-allocation-commands)
2.9 [Validate](#validate-commands)
3. [Exit codes](#exit-codes)
4. [Development](#development)
3. [Sync CLI usage](#sync-cli-usage)
3.1 [Top level commands](#top-level-commands-sync)
3.2 [Sync node commands](#sync-node-commands)
4. [Exit codes](#exit-codes)
5. [Development](#development)

## Installation

Expand All @@ -34,10 +37,10 @@ Ensure that the following package is installed: **docker**, **docker-compose** (
VERSION_NUM={put the version number here} && sudo -E bash -c "curl -L https://github.com/skalenetwork/node-cli/releases/download/$VERSION_NUM/skale-$VERSION_NUM-`uname -s`-`uname -m` > /usr/local/bin/skale"
```

For versions `<1.1.0`:
For Sync node version:

```shell
VERSION_NUM=0.0.0 && sudo -E bash -c "curl -L https://skale-cli.sfo2.cdn.digitaloceanspaces.com/skale-$VERSION_NUM-`uname -s`-`uname -m` > /usr/local/bin/skale"
VERSION_NUM={put the version number here} && sudo -E bash -c "curl -L https://github.com/skalenetwork/node-cli/releases/download/$VERSION_NUM/skale-$VERSION_NUM-`uname -s`-`uname -m`-sync > /usr/local/bin/skale"
```

- Apply executable permissions to the downloaded binary:
Expand Down Expand Up @@ -104,7 +107,7 @@ skale node init [ENV_FILE]

Arguments:

- `ENV_FILE` - path to .env file (required parameters are listed in the `skale init` command)
- `ENV_FILE` - path to .env file (required parameters are listed in the `skale node init` command)

You should specify the following environment variables:

Expand All @@ -117,6 +120,7 @@ You should specify the following environment variables:
- `MANAGER_CONTRACTS_ABI_URL` - URL to SKALE Manager contracts ABI and addresses
- `IMA_CONTRACTS_ABI_URL` - URL to IMA contracts ABI and addresses
- `FILEBEAT_URL` - URL to the Filebeat log server
- `ENV_TYPE` - environement type (mainnet, testnet, etc)


Optional variables:
Expand All @@ -136,7 +140,7 @@ skale node restore [BACKUP_PATH] [ENV_FILE]
Arguments:

- `BACKUP_PATH` - path to the archive with backup data generated by `skale node backup` command
- `ENV_FILE` - path to .env file (required parameters are listed in the `skale init` command)
- `ENV_FILE` - path to .env file (required parameters are listed in the `skale node init` command)

#### Node backup

Expand Down Expand Up @@ -177,7 +181,7 @@ skale node update [ENV_FILEPATH]

Options:

- `--yes` - remove without additional confirmation
- `--yes` - update without additional confirmation

Arguments:

Expand All @@ -197,7 +201,7 @@ skale node turn-off
Options:

- `--maintenance-on` - set SKALE node into maintenance mode before turning off
- `--yes` - remove without additional confirmation
- `--yes` - turn off without additional confirmation

#### Node turn-on

Expand All @@ -210,7 +214,7 @@ skale node turn-on [ENV_FILEPATH]
Options:

- `--maintenance-off` - turn off maintenance mode after turning on the node
- `--yes` - remove without additional confirmation
- `--yes` - turn on without additional confirmation

Arguments:

Expand Down Expand Up @@ -477,7 +481,7 @@ skale resources-allocation generate [ENV_FILE]

Arguments:

- `ENV_FILE` - path to .env file (required parameters are listed in the `skale init` command)
- `ENV_FILE` - path to .env file (required parameters are listed in the `skale node init` command)

Options:

Expand All @@ -500,6 +504,83 @@ Options:

- `--json` - show validation result in json format


## Sync CLI usage

### Top level commands sync

#### Info

Print build info

```shell
skale info
```

#### Version

Print version number

```shell
skale version
```

Options:

- `--short` - prints version only, without additional text.

### Sync node commands

> Prefix: `skale sync-node`

#### Sync node initialization

Initialize full sync SKALE node on current machine

```shell
skale sync-node init [ENV_FILE]
```

Arguments:

- `ENV_FILE` - path to .env file (required parameters are listed in the `skale sync-node init` command)

You should specify the following environment variables:

- `DISK_MOUNTPOINT` - disk mount point for storing sChains data
- `DOCKER_LVMPY_STREAM` - stream of `docker-lvmpy` to use
- `CONTAINER_CONFIGS_STREAM` - stream of `skale-node` to use
- `ENDPOINT` - RPC endpoint of the node in the network where SKALE Manager is deployed
- `MANAGER_CONTRACTS_ABI_URL` - URL to SKALE Manager contracts ABI and addresses
- `IMA_CONTRACTS_ABI_URL` - URL to IMA contracts ABI and addresses
- `SCHAIN_NAME` - name of the SKALE chain to sync
- `ENV_TYPE` - environement type (mainnet, testnet, etc)


Options:

- `--archive` - Run sync node in an archive node (disable block rotation)
- `--historic-state` - Enable historic state (works only in pair with --archive flag)
- `--catchup` - Add a flag to start sync node in catchup mode

#### Sync node update

Update full sync SKALE node on current machine

```shell
skale sync-node update [ENV_FILEPATH]
```

Options:

- `--yes` - update without additional confirmation

Arguments:

- `ENV_FILEPATH` - path to env file where parameters are defined

> NOTE: You can just update a file with environment variables used during `skale sync-node init`.

## Exit codes

Exit codes conventions for SKALE CLI tools
Expand Down
2 changes: 1 addition & 1 deletion lvmpy
Submodule lvmpy updated 1 files
+1 −1 src/health.py
2 changes: 1 addition & 1 deletion node_cli/cli/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = '2.3.1'
__version__ = '2.4.0'

if __name__ == "__main__":
print(__version__)
2 changes: 1 addition & 1 deletion node_cli/cli/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# This file is part of node-cli
#
# Copyright (C) 2019 SKALE Labs
# Copyright (C) 2019-Present SKALE Labs
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
Expand Down
13 changes: 5 additions & 8 deletions node_cli/cli/ssl.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
from terminaltables import SingleTable

from node_cli.utils.exit_codes import CLIExitCodes
from node_cli.utils.helper import get_request, safe_load_texts, error_exit
from node_cli.configs import DEFAULT_SSL_CHECK_PORT, SSL_CERT_FILEPATH, SSL_KEY_FILEPATH
from node_cli.core.ssl import check_cert, upload_cert
from node_cli.utils.helper import safe_load_texts, error_exit
from node_cli.configs.ssl import DEFAULT_SSL_CHECK_PORT, SSL_CERT_FILEPATH, SSL_KEY_FILEPATH
from node_cli.core.ssl import check_cert, upload_cert, cert_status


TEXTS = safe_load_texts()
Expand All @@ -42,10 +42,7 @@ def ssl():

@ssl.command(help="Status of the SSL certificates on the node")
def status():
status, payload = get_request(
blueprint=BLUEPRINT_NAME,
method='status'
)
status, payload = cert_status()
if status == 'ok':
if payload.get('is_empty'):
print(TEXTS['ssl']['no_cert'])
Expand Down Expand Up @@ -79,7 +76,7 @@ def upload(key_path, cert_path, force):
if status == 'ok':
print(TEXTS['ssl']['uploaded'])
else:
error_exit(payload, exit_code=CLIExitCodes.BAD_API_RESPONSE)
error_exit(payload, exit_code=CLIExitCodes.FAILURE)


@ssl.command(help="Check certificates")
Expand Down
Loading
Loading