fence_virtd: cpg: Fix typo

Fix a typo in the configuration parsing for the cpg plugin during
initialization.

Signed-off-by: Ryan McCabe <rmccabe@redhat.com>
This commit is contained in:
Ryan McCabe 2017-05-27 21:55:45 -04:00
parent d216131344
commit 0bc1f54961

View File

@ -28,12 +28,10 @@
#include <time.h>
#include <server_plugin.h>
#include <string.h>
#include <malloc.h>
#include <syslog.h>
#include <errno.h>
#include <unistd.h>
#include <pthread.h>
#include <libvirt/libvirt.h>
#include <corosync/cpg.h>
#include <debug.h>
@ -475,7 +473,7 @@ cpg_virt_init(backend_context_t *c, config_object_t *config)
snprintf(conf_attr, sizeof(conf_attr),
"backends/cpg/@uri%d", i);
} else
snprintf(conf_attr, sizeof(conf_attr), "backends/libvirt/@uri");
snprintf(conf_attr, sizeof(conf_attr), "backends/cpg/@uri");
++i;
if (sc_get(config, conf_attr, value, sizeof(value)) != 0)