Skip to content

Commit 89ead11

Browse files
committed
typo
1 parent 60bcc31 commit 89ead11

File tree

1 file changed

+3
-16
lines changed

1 file changed

+3
-16
lines changed

_posts/kubernetes/2021-03-18-kubernetes-retrieve-container-image-inventory.md

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Type "help", "copyright", "credits" or "license" for more information.
6464
>>> import yaml
6565
```
6666

67-
We are now to going to read the file and create a new object that stores the YAML content as a
67+
We are now going to read the file and create a new object that stores the YAML content as a
6868
dictionary object.
6969
```
7070
with open('/tmp/details-of-pods.yaml') as f:
@@ -96,7 +96,7 @@ Let's create a file, where we can store the results, we are retreiving.
9696
file = open('/tmp/container-img-inventory.csv', 'w')
9797
file.write('Pod Name\tPod Namespace\tContainer Name\tContainer Image\n')
9898
```
99-
Note that \t referes to tab \n refers to newline character.
99+
Note that \t referes to tab and \n refers to newline character.
100100

101101
```
102102
for item in pod_list['items']:
@@ -147,7 +147,7 @@ for item in pod_list['items']:
147147
file.write(f'{pod_name}\t{pod_namespace}\t{container_name}\t{container_image}\n')
148148
```
149149

150-
The file should contain the details that we need.
150+
The file should now contain the details that we need.
151151
```
152152
$ head /tmp/container-img-inventory.csv
153153
Pod Name Pod Namespace Container Name Container Image
@@ -166,16 +166,3 @@ Since the file is in csv format, we could use utilities like Excel or Google she
166166
content in a graphical way.
167167

168168
---end-of-post---
169-
170-
171-
172-
173-
174-
175-
176-
177-
178-
179-
180-
181-

0 commit comments

Comments
 (0)