Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1387 from cloudflare/avery/fix-preview-creation
Browse files Browse the repository at this point in the history
Fix kv:namespace create --preview
  • Loading branch information
EverlastingBugstopper authored Jun 15, 2020
2 parents 8227d1c + 7ea7f57 commit 087ab5c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/commands/kv/namespace/create.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 087ab5c

Please sign in to comment.