Skip to content

Commit 933bd3f

Browse files
committed
added create method for StoragePasswords
- if wildcards are passed during StoragePasswords creation then sdk will throw an error
1 parent 52e4472 commit 933bd3f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/service.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1988,6 +1988,12 @@
19881988
*/
19891989
init: function(service, namespace) {
19901990
this._super(service, this.path(), namespace);
1991+
},
1992+
create: function(params, callback){
1993+
if(this.service.app == '-' || this.service.owner == '-'){
1994+
throw new Error("While creating StoragePasswords, namespace cannot have wildcards.");
1995+
}
1996+
this._super(params,callback);
19911997
}
19921998
});
19931999

0 commit comments

Comments
 (0)