util: move csiconfigfile to util

as we have csiconfigfile in both cephfs
and rbd moving the configfile path to
util folder.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
Madhu Rajanna
2020-08-10 11:49:38 +05:30
committed by mergify[bot]
parent 35c5afcd3e
commit 18f4e9d519
6 changed files with 11 additions and 14 deletions

View File

@ -671,7 +671,7 @@ func getMonsAndClusterID(ctx context.Context, options map[string]string) (monito
return
}
if monitors, err = util.Mons(csiConfigFile, clusterID); err != nil {
if monitors, err = util.Mons(util.CsiConfigFile, clusterID); err != nil {
klog.Errorf(util.Log(ctx, "failed getting mons (%s)"), err)
err = fmt.Errorf("failed to fetch monitor list using clusterID (%s): %w", clusterID, err)
return