Skip to content

Commit 7a5ab30

Browse files
refactor(LinstorSR): create cache when getting uri from xha_config_file
Signed-off-by: Mathieu Labourier <[email protected]>
1 parent 5155c44 commit 7a5ab30

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/LinstorSR.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#
1414
# You should have received a copy of the GNU General Public License
1515
# along with this program. If not, see <https://www.gnu.org/licenses/>.
16-
16+
from drivers.linstorvolumemanager import write_controller_uri_cache
1717
from sm_typing import Optional, override
1818

1919
from constants import CBTLOG_TAG
@@ -420,6 +420,7 @@ def connect():
420420
try:
421421
util.SMlog('Connecting from config to LINSTOR controller using: {}'.format(ip))
422422
create_linstor(controller_uri, attempt_count=0)
423+
write_controller_uri_cache(controller_uri)
423424
return controller_uri
424425
except:
425426
pass

0 commit comments

Comments
 (0)