Skip to content

Commit

Permalink
chore(storage): inline if
Browse files Browse the repository at this point in the history
Co-authored-by: AJ Kovalainen <ajk@upcloud.com>
  • Loading branch information
villevsv-upcloud and Darep authored May 27, 2024
1 parent 90ab20b commit 5bb05be
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions upcloud_api/cloud_manager/storage_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,7 @@ def create_storage(
if backup_rule is None:
backup_rule = {}

if encrypted:
encrypted_str = 'yes'
else:
encrypted_str = 'no'
encrypted_str = 'yes' if encrypted else 'no'

body = {
'storage': {
Expand Down

0 comments on commit 5bb05be

Please sign in to comment.