From e50a077522a5f95a94f55cb8ca6cd60e685a8256 Mon Sep 17 00:00:00 2001 From: Fred Park Date: Mon, 9 Jul 2018 08:51:02 -0700 Subject: [PATCH] Fix storage cluster provisioning with ne opts - Node exporter options not properly handled when not specified --- convoy/remotefs.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/convoy/remotefs.py b/convoy/remotefs.py index f47f99f..12beb11 100644 --- a/convoy/remotefs.py +++ b/convoy/remotefs.py @@ -364,9 +364,13 @@ def _create_virtual_machine_extension( smb = None # construct bootstrap command if rfs.storage_cluster.prometheus.ne_enabled: + if util.is_not_empty(rfs.storage_cluster.prometheus.ne_options): + pneo = ','.join(rfs.storage_cluster.prometheus.ne_options) + else: + pneo = '' promopt = ' -e \'{},{}\''.format( - rfs.storage_cluster.prometheus.ne_port, - ','.join(rfs.storage_cluster.prometheus.ne_options)) + rfs.storage_cluster.prometheus.ne_port, pneo) + del pneo else: promopt = '' cmd = './{bsf} {c}{d}{e}{f}{i}{m}{n}{o}{p}{r}{s}{t}'.format(