Fix: make sure ctrl & data url are set for post creation configuration
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Tue, 28 Jun 2016 20:16:54 +0000 (16:16 -0400)
committerJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Wed, 29 Jun 2016 16:35:53 +0000 (12:35 -0400)
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
src/bin/lttng/commands/create.c

index 707f5ee7d385df79d82b327b9885724c131d68cd..f020fff638957548cf90c7a2aed118f80f067abb 100644 (file)
@@ -326,10 +326,14 @@ static int create_session_basic (const char *session_name,
        case OUTPUT_LOCAL:
                break;
        case OUTPUT_NET:
+               if (!ctrl_url || !data_url) {
+                       break;
+               }
+
                if (session_type == SESSION_SNAPSHOT) {
                        ret = add_snapshot_output(session_name, ctrl_url,
                                        data_url);
-               } else if (ctrl_url && data_url) {
+               } else {
                        /*
                         * Normal sessions and live sessions behave the same way
                         * regarding consumer url.
This page took 0.027579 seconds and 5 git commands to generate.