From 7d2f5a18337059c9f08ebf76271499c5f04a2a17 Mon Sep 17 00:00:00 2001
From: Matt Allford
Date: Wed, 3 Apr 2019 22:59:40 +1100
Subject: [PATCH 1/3] Minor updates (#10)
- Modified the logic used when connecting to a Pure Flasharray target
- Added PSEdition_Desktop tag to the module manifest
- Updated the copyright information in the module manifest
- Add statistic links to readme.md
---
AsBuiltReport.PureStorage.FlashArray.psd1 | Bin 8480 -> 8544 bytes
CHANGELOG.md | 7 +++++
README.md | 25 ++++++++++++++++--
...e-AsBuiltReport.Purestorage.FlashArray.ps1 | 9 ++++---
4 files changed, 36 insertions(+), 5 deletions(-)
diff --git a/AsBuiltReport.PureStorage.FlashArray.psd1 b/AsBuiltReport.PureStorage.FlashArray.psd1
index 5b050413cb76e5f407e93e690fe107745fe92990..b6c28f797909e831e9c6eeb3ce7a6afe7c7a9196 100644
GIT binary patch
delta 62
zcmZ4B^uTFD9}}bD=6b8@_t>}ClW4psmyA`f2x
delta 42
ycmaFhw7_XY9}}a&=6
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
# Pure Storage FlashArray AsBuiltReport
Pure Storage FlashArray AsBuiltReport is a module of the parent "AsBuiltReport" project (https://github.com/AsBuiltReport/AsBuiltReport). AsBuiltReport is a PowerShell module which generates As-Built documentation for many common datacentre infrastructure systems. Reports can be generated in Text, XML, HTML and MS Word formats and can be presented with custom styling to align with your company/customer's brand.
@@ -53,9 +74,9 @@ The following provides information of how to configure each schema within the re
## Examples
There is one example listed below on running the AsBuiltReport script against a Pure Storage FlashArray target. Refer to the `README.md` file in the main AsBuiltReport project repository for more examples.
-- The following creates a Pure Storage FlashArray As-Built report in HTML & Word formats.
+- The following creates a Pure Storage FlashArray As-Built report in HTML & Word formats in the folder C:\scripts\.
```powershell
-PS C:\>New-AsBuiltReport -Report PureStorage.FlashArray -Target 192.168.1.100 -Credential (Get-Credential) -Format HTML,Word
+PS C:\>New-AsBuiltReport -Report PureStorage.FlashArray -Target 192.168.1.100 -Credential (Get-Credential) -Format HTML,Word -OutputPath C:\scripts\
```
## Knwon Issues
\ No newline at end of file
diff --git a/Src/Public/Invoke-AsBuiltReport.Purestorage.FlashArray.ps1 b/Src/Public/Invoke-AsBuiltReport.Purestorage.FlashArray.ps1
index 3038e53..4b91cac 100644
--- a/Src/Public/Invoke-AsBuiltReport.Purestorage.FlashArray.ps1
+++ b/Src/Public/Invoke-AsBuiltReport.Purestorage.FlashArray.ps1
@@ -5,7 +5,7 @@ function Invoke-AsBuiltReport.PureStorage.FlashArray {
.DESCRIPTION
Documents the configuration of Pure Storage FlashArray in Word/HTML/XML/Text formats using PScribo.
.NOTES
- Version: 0.4/0
+ Version: 0.4.1
Author: Matt Allford
Twitter: @mattallford
Github: https://github.com/mattallford
@@ -30,11 +30,12 @@ function Invoke-AsBuiltReport.PureStorage.FlashArray {
}
$Script:Array = $Null
+ #Connect to Pure Storage Array using supplied credentials
foreach ($FlashArray in $Target) {
Try {
- $Array = New-PfaArray -EndPoint $FlashArray -Credentials $Credential -IgnoreCertificateError
+ $Array = New-PfaArray -EndPoint $FlashArray -Credentials $Credential -IgnoreCertificateError -ErrorAction Stop
} Catch {
- Write-Verbose "Unable to connect to the Pure Storage FlashArray $FlashArray"
+ Write-Error $_
}
if ($Array) {
@@ -438,5 +439,7 @@ function Invoke-AsBuiltReport.PureStorage.FlashArray {
}#End Section Heading2 Users
}#End Section Heading1 $ArrayAttributes.array_name
}#End if $Array
+ #Clear the $Array variable ready for reuse for a connection attempt on the next foreach loop
+ Clear-Variable -Name Array
}#End foreach $FlashArray in $Target
}#End Function Invoke-AsBuiltReport.PureStorage.FlashArray
\ No newline at end of file
From 1ab823457cb70864a760a79f3c45d79ae27bdc41 Mon Sep 17 00:00:00 2001
From: Matt Allford
Date: Thu, 4 Apr 2019 10:02:46 +1100
Subject: [PATCH 2/3] Add License File (#11)
* Add License File
Add license to repository
Update the references to badges in the readme so they are now clickable
* Update README.md
---
License | 21 +++++++++++++++++++++
README.md | 16 ++++++++--------
2 files changed, 29 insertions(+), 8 deletions(-)
create mode 100644 License
diff --git a/License b/License
new file mode 100644
index 0000000..da97e95
--- /dev/null
+++ b/License
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2019 AsBuiltReport
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
\ No newline at end of file
diff --git a/README.md b/README.md
index 85ea3fd..7a8c8db 100644
--- a/README.md
+++ b/README.md
@@ -1,21 +1,21 @@
-
+
-
+
-
+
-
+
-
+
-
+
-
+
@@ -79,4 +79,4 @@ There is one example listed below on running the AsBuiltReport script against a
PS C:\>New-AsBuiltReport -Report PureStorage.FlashArray -Target 192.168.1.100 -Credential (Get-Credential) -Format HTML,Word -OutputPath C:\scripts\
```
-## Knwon Issues
\ No newline at end of file
+## Knwon Issues
From f9d4da1ca5ae89189401a07264e699bed89630ed Mon Sep 17 00:00:00 2001
From: Tim Carman
Date: Thu, 4 Apr 2019 21:47:15 +1100
Subject: [PATCH 3/3] Update manifest, workspace settings and README (#12)
---
.vscode/settings.json | 2 +-
AsBuiltReport.PureStorage.FlashArray.psd1 | Bin 8544 -> 9406 bytes
README.md | 8 ++++----
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/.vscode/settings.json b/.vscode/settings.json
index 9620ce4..7d1aa34 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -10,7 +10,7 @@
"powershell.codeFormatting.openBraceOnSameLine": true,
"powershell.codeFolding.enable": true,
"powershell.codeFormatting.alignPropertyValuePairs": false,
- "powershell.bugReporting.project": "https://github.com/tpcarman/As-Built-Report/",
+ "powershell.bugReporting.project": "https://github.com/AsBuiltReport/AsBuiltReport.PureStorage.FlashArray/",
"editor.tabSize": 4,
"editor.insertSpaces": true,
"editor.detectIndentation": false,
diff --git a/AsBuiltReport.PureStorage.FlashArray.psd1 b/AsBuiltReport.PureStorage.FlashArray.psd1
index b6c28f797909e831e9c6eeb3ce7a6afe7c7a9196..37f58dff132e23d77313e0ddb7576ed3c87a40a7 100644
GIT binary patch
delta 963
zcmZ{iO=wd=5XUE9=H)x-Ym(QP5AJBuFY2GFmS>Eojz
z!xACBWw}Fjwk#f8wuXsqIz9NtCgE4>PVAbk2S-FJKJyFrQ^81@U11pt&)*Dst#
zh`d%(Kjx_2i?3}(+9GOiUe%2KC706e80Pl0<2vQm90Qz*&YQ$moI{+wcdl{!wyR&Y
zD{HPvjq0FH9Ik7|aq(owe`QvliiexO{BGy9Fyx+~edpbSYRSrTcT4hLPcu2<-RY4V
z-lUq06H)+c-f=3@B}H5KG_h5wM`e|dQm&~Y=8Kc?Q@&pO;rsM-SA}hEe_o=7C
Y4SAGKx=V>tXC;)+JQi0(4DT8I2O*8`r2qf`
delta 425
zcmXYqF=!KE7>4gIxq3-1X%hb=m*Y&+iv(>mgrkH*LJ1*AS`{J|i6DYOK_t{HmJUIJ
zbST9^c$REp5pi%RCWA;R#nHjZsgp>_Akua$#lgSe@bSFw10V0+($D&irIJ@)F;@Hd
zS|f5xd8Ry4o-1ADF>lQb?=`_!t<0HLqaJ9p9q3>NJ+23MaHVV03swJjgCC*1baNELM>vtX%pSwYDMNFP
zZ{`;Fqcz?|Kc6qf=2=aInZ#bwo31jR-lre;*^LiqBo-JXHZYSuHG0I9Gq$gc4(+x|!zl+^${lVy^L%o4M{AeDDx0~E+|C@H>>G=Ni)F5cw9}{JzX-
nmS^wsVRnIQZVt^YOIFx(End4t$tJPFA}fUwn}rE$mz)0pENew-AsBuiltReport -Report PureStorage.FlashArray -Target 192.168.1.100 -Credential (Get-Credential) -Format HTML,Word -OutputPath C:\scripts\
```
-## Knwon Issues
+## Known Issues