Skip to content

Commit

Permalink
Fix Set-CouchDBConfiguration;
Browse files Browse the repository at this point in the history
  • Loading branch information
MatteoGuadrini committed Aug 8, 2019
1 parent e6e9545 commit 84db110
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion PSCouchDB/PSCouchDB.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
RootModule = 'PSCouchDB.psm1'

# Version number of this module.
ModuleVersion = '1.11.6'
ModuleVersion = '1.12.0'

# Supported PSEditions
# CompatiblePSEditions = @()
Expand Down
4 changes: 2 additions & 2 deletions PSCouchDB/PSCouchDB.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -3733,12 +3733,12 @@ function Set-CouchDBConfiguration () {
)
$Database = "_node"
$Document = "$Node/_config"
if ((Get-CouchDBConfiguration -Server $Server -Port $Port -Authorization $Authorization -Ssl:$Ssl).$Element) {
if ((Get-CouchDBConfiguration -Server $Server -Port $Port -Node $Node -Authorization $Authorization -Ssl:$Ssl).$Element) {
$Document += "/$Element/$Key"
} else {
throw "Element $Element not exist!"
}
$Data = "$Value" | ConvertTo-Json
$Data = $Value | ConvertTo-Json
Send-CouchDBRequest -Server $Server -Port $Port -Method "PUT" -Database $Database -Document $Document -Data $Data -Authorization $Authorization -Ssl:$Ssl
}

Expand Down
Binary file modified docs/build/doctrees/ddoc.doctree
Binary file not shown.
Binary file modified docs/build/doctrees/environment.pickle
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/build/html/_sources/ddoc.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ To remove a design document.
Remove design document attachment
*********************************
To modify or add an attachment in a design document.
To remove an attachment in a design document.
.. code-block:: powershell
Expand Down
2 changes: 1 addition & 1 deletion docs/build/html/ddoc.html
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ <h2>Remove design document<a class="headerlink" href="#remove-design-document" t
</div>
<div class="section" id="remove-design-document-attachment">
<h3>Remove design document attachment<a class="headerlink" href="#remove-design-document-attachment" title="Permalink to this headline"></a></h3>
<p>To modify or add an attachment in a design document.</p>
<p>To remove an attachment in a design document.</p>
<div class="highlight-powershell notranslate"><div class="highlight"><pre><span></span><span class="nb">Remove-CouchDBDesignDocumentAttachment</span> <span class="n">-Database</span> <span class="n">test</span> <span class="n">-Document</span> <span class="n">space</span> <span class="n">-Attachment</span> <span class="s2">&quot;C:\test2.txt&quot;</span> <span class="n">-Revision</span> <span class="n">5-cfae778df80635ad15daa09e0264a988</span> <span class="n">-Authorization</span> <span class="s2">&quot;admin:password&quot;</span>
</pre></div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion docs/source/ddoc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ To remove a design document.
Remove design document attachment
*********************************
To modify or add an attachment in a design document.
To remove an attachment in a design document.
.. code-block:: powershell
Expand Down

0 comments on commit 84db110

Please sign in to comment.