From 2af81ccd64c5529c98d2f756c9d6e6fbbdec0796 Mon Sep 17 00:00:00 2001 From: Roman Nozdrin Date: Thu, 24 Sep 2020 11:54:24 +0000 Subject: [PATCH] Change the debugging output prints to separate multi-node with local storage and single-node with any type of storage --- oam/install_scripts/mcs-savebrm.py.in | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/oam/install_scripts/mcs-savebrm.py.in b/oam/install_scripts/mcs-savebrm.py.in index 0074e494e..ae8b65ad3 100755 --- a/oam/install_scripts/mcs-savebrm.py.in +++ b/oam/install_scripts/mcs-savebrm.py.in @@ -40,10 +40,15 @@ if __name__ == '__main__': is_primary = False # For multi-node with local storage or default installations - if (storage.lower() != 's3' and master_addr != default_addr) or \ -master_addr == default_addr: + multi_with_local_storage = storage.lower() != 's3' and master_addr != default_addr + if multi_with_local_storage is True or master_addr == default_addr: + # This might be not a primary in a multi-node cluster but we are safe + # to save BRM locally is_primary = True - print('Multi-node with local-storage detected.') + if multi_with_local_storage is True: + print('This is a multi-node installation with a local-storage.') + else: + print(' This is a single-node installation.') else: has_requests = False try: