Skip to content

Commit

Permalink
Add folder subpath
Browse files Browse the repository at this point in the history
  • Loading branch information
seattlevine committed Sep 15, 2017
1 parent 987e887 commit 7c92e2b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
Binary file modified dist/f5-cloud-libs.tar.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion dist/verifyHash
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
cli script /Common/verifyHash {
proc script::run {} {
if {[catch {
set hashes(f5-cloud-libs.tar.gz) 0fe624abcd1164e95e94756afc11d02b30f1ea4e015f41f7c3b2bdcc48430bfe207157151b78c35cdba7c347170ae709675b8153c7f9aec020a1fdf279fa86e1
set hashes(f5-cloud-libs.tar.gz) d64835ef293bff915893f7926c9de01affdacdc6fcfd70b178fb0cb59e87b4a99749653e46837014fa925fc281ae1ce3351138be0281e4a4555eb905cda0f946
set hashes(f5-cloud-libs-aws.tar.gz) 549aa436be806c80640f8dce570128fdf84613bf0688392e018639412c63818d25f26635b0aaf23e8cdf60b0d331de9218ed51a9cdfbf33db6e683727169a727
set hashes(f5-cloud-libs-azure.tar.gz) a4ff4a9af058ce6058159531fd7bca07eb8808cdd1b1e13de0e1324ec7e4692211991ecaa58dc36021c6c88c7783837d480584393753c3dfc2fddf623781e3a9
set hashes(asm-policy-linux.tar.gz) 63b5c2a51ca09c43bd89af3773bbab87c71a6e7f6ad9410b229b4e0a1c483d46f1a9fff39d9944041b02ee9260724027414de592e99f4c2475415323e18a72e0
Expand Down
11 changes: 7 additions & 4 deletions lib/bigIp.js
Original file line number Diff line number Diff line change
Expand Up @@ -367,9 +367,11 @@ BigIp.prototype.getCloudPrivateKeyFilePath = function() {
/*
* Creates a folder if it does not exists
*
* @param {String} folder - Full path of folder
* @param {Object} [options] - Optional parameters
* @param {String} [options.deviceGroup] - Device group for folder. Default 'none'
* @param {String} folder - Name of folder
* @param {Object} [options] - Optional parameters
* @param {String} [options.subPath] - The folder subPath. Use '/' for top level folders.
* Default '/Common'
* @param {String} [options.deviceGroup] - Device group for folder. Default 'none'
* @param {String} [options.trafficGroup] - Traffic group for folder. Default 'none'
*
* @returns {Promise} A promise which is resolved when the request is complete
Expand All @@ -393,6 +395,7 @@ BigIp.prototype.createFolder = function(folder, options) {
else {
var body = {
name: folder,
subPath: options.subPath || '/Common',
deviceGroup: options.deviceGroup || 'none',
trafficGroup: options.trafficGroup || 'none'
};
Expand Down Expand Up @@ -427,7 +430,7 @@ BigIp.prototype.installCloudPrivateKey = function(privateKeyFile) {

return this.ready()
.then(function() {
return this.createFolder('/' + CLOUD_LIBS_PRIVATE_KEY_FOLDER);
return this.createFolder(CLOUD_LIBS_PRIVATE_KEY_FOLDER);
}.bind(this))
.then(function() {
return this.create(CRYPTO_PATH, installBody, undefined, util.NO_RETRY);
Expand Down

0 comments on commit 7c92e2b

Please sign in to comment.