Bug #6921

[SDKs] `arv create` creates an object from an empty file

Added by Brett Smith almost 4 years ago. Updated over 3 years ago.

Status:
New
Priority:
Normal
Assigned To:
-
Category:
SDKs
Target version:
Start date:
08/06/2015
Due date:
% Done:

0%

Estimated time:
Story points:
0.5

Description

When you run arv create, you start with a file that has {} in it. You're expected to fill in the necessary JSON.

If you remove those braces and exit the editor with an empty file, arv create still tries to create an object—presumably with an empty body.

This surprised me. I expected it to follow the convention of git commit, git rebase, etc., where saving an empty action file causes the tool to abort.


Related issues

Has duplicate Arvados - Bug #8088: create pipeline template creates empty pipelinesDuplicate12/29/2015

History

#1 Updated by Brett Smith over 3 years ago

#8088 points out that if you exit your editor without saving, that shouldn't create an object either.

Also available in: Atom PDF