Skip to content

Commit f2d1f95

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

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.github/workflows/k8s.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,10 @@ jobs:
103103
with:
104104
name: smoke-k8s-dump
105105
path: dump
106-
# - name: Setup tmate session
107-
# if: ${{ failure() }}
108-
# timeout-minutes: 120
109-
# uses: mxschmitt/action-tmate@v3
106+
- name: Setup tmate session
107+
if: ${{ failure() }}
108+
timeout-minutes: 120
109+
uses: mxschmitt/action-tmate@v3
110110

111111
release-check:
112112
if: ${{ inputs.release-check }}

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)