@f5devcentral/f5-cloud-libs
Advanced tools
Comparing version 4.26.5 to 4.26.6
@@ -430,6 +430,6 @@ /** | ||
const deferred = q.defer(); | ||
this.icontrol.list(`${path}/${partitionPath}${body.name}`) | ||
const namePath = body.name.replace(/\//g, '~'); | ||
this.icontrol.list(`${path}/${partitionPath}${namePath}`) | ||
.then(() => { | ||
finalPath = `${path}/${partitionPath}${body.name}`; | ||
finalPath = `${path}/${partitionPath}${namePath}`; | ||
if (!methodOptions.silent) { | ||
@@ -445,3 +445,3 @@ this.logger.silly(`${finalPath} exists, modifying`); | ||
this.logger.silly( | ||
`${path}/${partitionPath}${body.name} does not exist, creating` | ||
`${path}/${partitionPath}${namePath} does not exist, creating` | ||
); | ||
@@ -448,0 +448,0 @@ this.logger.debug('create', this.host, finalPath, body); |
{ | ||
"name": "@f5devcentral/f5-cloud-libs", | ||
"version": "4.26.5", | ||
"version": "4.26.6", | ||
"description": "Common library code and scripts for deploying a BIG-IP in a cloud environment", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
# Release notes | ||
## Release 4.26.6 | ||
* Replace slashes in names with tilde's when modifying objects | ||
## Release 4.26.4 | ||
@@ -4,0 +7,0 @@ * Expose chargebackTag BIGIQ license tag. |
@@ -270,2 +270,10 @@ /** | ||
it('should replace slashes in the name with ~', () => { | ||
return bigIp.createOrModify('/tm/sys/foo', { name: 'foo/bar' }) | ||
.then(() => { | ||
assert.strictEqual(icontrolMock.lastCall.method, 'modify'); | ||
assert.strictEqual(icontrolMock.lastCall.path, '/tm/sys/foo/~Common~foo~bar'); | ||
}); | ||
}); | ||
it('delete test', () => { | ||
@@ -272,0 +280,0 @@ icontrolMock.when('delete', '/tm/sys/foo/bar', {}); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3194737
31555