Skip to content

Commit 6f002de

Browse files
committed
✏️ Node Plugin config validation
Signed-off-by: Muhammed Hussain Karimi <[email protected]>
1 parent dafb905 commit 6f002de

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

rawfile/config/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def parse_dict(cls, v):
123123
def validate_node_plugin(
124124
self,
125125
):
126-
if self.plugin_type != "node":
126+
if self.plugin_type == "node":
127127
if not self.internal_ip:
128128
raise ValueError(
129129
"Internal Communication IP/PORT is required on node plugin"

rawfile/utils/volume_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ def create_volume(
4646
self,
4747
volume_id: str,
4848
size: int,
49-
thin_provision: bool,
5049
storage_pool: str,
50+
thin_provision: bool,
5151
freezefs: bool | None = None,
5252
copy_on_write: bool | None = None,
5353
source_type: VolumeSource | None = None,

0 commit comments

Comments
 (0)