Skip to content

Commit d6ce7d2

Browse files
SAAS-6949 Fixed name and id in output options (#443)
* SAAS-6901 Add tags to query params for getting pipeline by name * SAAS-6949 Fixed -o name and id * SAAS-6949 Fixed -o name and id * SAAS-6949 Fixed -o name and id
1 parent f625892 commit d6ce7d2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/logic/entities/Entity.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ class Entity {
2525
}
2626

2727
toName() {
28-
return `${this.entityType}/${this.info.name}`;
28+
return String(this.name || this.info.name);
2929
}
3030

3131
toId() {
32-
return `${this.info.id}`;
32+
return String(this.id || this.info.id);
3333
}
3434

3535
extractValues(columns) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "codefresh",
3-
"version": "0.52.6",
3+
"version": "0.52.7",
44
"description": "Codefresh command line utility",
55
"main": "index.js",
66
"preferGlobal": true,

0 commit comments

Comments
 (0)