Skip to content
This repository has been archived by the owner on Oct 26, 2023. It is now read-only.

Commit

Permalink
docs: Fix a few typos
Browse files Browse the repository at this point in the history
There are small typos in:
- pypxe/nbd/writes.py
- pypxe/server.py

Fixes:
- Should read `definite` rather than `definate`.
- Should read `passed` rather than `pased`.
- Should read `definitely` rather than `definately`.
  • Loading branch information
timgates42 authored and icb- committed Aug 4, 2021
1 parent ce311ad commit 1f37c71
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions pypxe/nbd/writes.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ def basepages(self, offset, length):
length -= 4096 - (offset % 4096)
offset += 4096

# all following FULL chunks, definate page boundary and full size
# all following FULL chunks, definite page boundary and full size
while length >= 4096:
basepages.append((offset, 0, 4096))
length -= 4096
offset += 4096

# final non-full chunk, definate offset, variable length
# final non-full chunk, definite offset, variable length
if length > 0:
basepages.append((offset, 0, length))

Expand Down Expand Up @@ -90,7 +90,7 @@ def __init__(self, addr, imagefd, logger, seek_lock):
self.logger = helpers.get_child_logger(logger, 'FS')
self.logger.info('Copy-On-Write for {addr} in PyPXE_NBD_COW_{addr[0]}_{addr[1]}'.format(addr = addr))

# never want readonly cow, also definately creating file
# never want readonly cow, also definitely creating file
self.fh = open('PyPXE_NBD_COW_{addr[0]}_{addr[1]}'.format(addr = addr), 'w+b')

# pages is a list of the addresses for which we have different pages
Expand Down
2 changes: 1 addition & 1 deletion pypxe/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def main():
if args.USE_HTTP and not args.USE_IPXE and not args.USE_DHCP:
sys_logger.warning('HTTP selected but iPXE disabled. PXE ROM must support HTTP requests.')

# if the argument was pased to enabled ProxyDHCP then enable the DHCP server
# if the argument was passed to enabled ProxyDHCP then enable the DHCP server
if args.DHCP_MODE_PROXY:
args.USE_DHCP = True

Expand Down

0 comments on commit 1f37c71

Please sign in to comment.