Skip to content

Commit 87f2863

Browse files
committed
a
1 parent ab92a01 commit 87f2863

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

plugins/modules/version_update.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def run(
125125
if len(new_icos_version.split(".")) != 4:
126126
msg = f"HyperCore version must be in format 'major_version.minor_version.revision.build_id' - value {new_icos_version} is not valid."
127127
raise errors.InvalidModuleParam(msg)
128-
update_ansible_dict = dict(
128+
update = Update(
129129
uuid=new_icos_version,
130130
description="",
131131
change_log="",
@@ -135,14 +135,15 @@ def run(
135135
revision=new_icos_version.split(".")[2],
136136
timestamp=0,
137137
)
138+
# update_ansible_dict = update.to_ansible()
138139
else:
139140
# check the requested version is listed under available versions
140141
update = Update.get(rest_client, new_icos_version, must_exist=True)
141-
update_ansible_dict = update.to_ansible()
142+
# update_ansible_dict = update.to_ansible()
142143
Update.apply_update(rest_client, new_icos_version) # type: ignore
143144
return (
144145
True,
145-
update_ansible_dict, # type: ignore
146+
update.to_ansible(), # type: ignore
146147
dict(
147148
before=dict(icos_version=cluster.icos_version),
148149
after=dict(icos_version=new_icos_version), # type: ignore

0 commit comments

Comments
 (0)