From 7ea7f57d9ed06e14e5cf76d2cd5a1379fa3b4c82 Mon Sep 17 00:00:00 2001 From: Avery Harnish Date: Mon, 15 Jun 2020 12:42:50 -0500 Subject: [PATCH] Fix kv:namespace create --preview --- src/commands/kv/namespace/create.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/commands/kv/namespace/create.rs b/src/commands/kv/namespace/create.rs index e44a5fc51..398ef4b17 100644 --- a/src/commands/kv/namespace/create.rs +++ b/src/commands/kv/namespace/create.rs @@ -18,7 +18,10 @@ pub fn run( kv::validate_target(&target)?; validate_binding(binding)?; - let title = format!("{}-{}", target.name, binding); + let mut title = format!("{}-{}", target.name, binding); + if is_preview { + title.push_str("_preview"); + } let msg = format!("Creating namespace with title \"{}\"", title); message::working(&msg);