Return error returned by CSINode Get if initialization failed

This commit is contained in:
Matthew Wong 2019-08-02 18:08:18 -07:00 committed by Matthew Wong
parent 5993ec5a5a
commit bd42e728a8

View File

@ -417,6 +417,8 @@ func (nim *nodeInfoManager) tryInitializeCSINodeWithAnnotation(csiKubeClient cli
// CreateCSINode will set the annotation
_, err = nim.CreateCSINode()
return err
} else if err != nil {
return err
}
annotationModified := setMigrationAnnotation(nim.migratedPlugins, nodeInfo)