Fix: make sure ctrl & data url are set for post creation configuration
[lttng-tools.git] / 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.025019 seconds and 5 git commands to generate.