truenas / py-SMART

Wrapper for smartctl (smartmontools)
GNU Lesser General Public License v2.1
76 stars 35 forks source link

Minor typo in NvmeAttributes() class #81

Closed petersulyok closed 7 months ago

petersulyok commented 7 months ago

In the latest github version there is minor typo in ./pySMART/interface/nvme/__init__.py file, line 536:

self.critialWarning: Optional[int] = None

The 'c' is missing from critical. Later the right name is used in the code and in the comments. I wanted to create a pull request to fix it but this repo seems to be closed.

ralequi commented 7 months ago

Thanks for your report.

Why it seems that the repo looks closed? Could you provide more info about that? It seems ok to me, but it may be caused i've a privileged access

petersulyok commented 7 months ago

Thanks for the fix.

I received this error message in PyCharm when I pushed my pull request: Can't create a new pull request: Push failed: remote: Permission to truenas/py-SMART.git denied to petersulyok. unable to access 'https://github.com/truenas/py-SMART.git/': The requested URL returned error: 403

I could be an PyCharm issue, usually I don't have any issue with my repos.

ralequi commented 7 months ago

Hi, bug fixed and published as dev release: https://pypi.org/project/pySMART/1.3.1.dev5/

Ok, that seems that you have tried to push directly to the repo. That's not how github works on non-owned repos.

Normally you have to: 1- fork the project 2- push your commits to your project fork 3- create a new "pull request" from your repo to the original one

Yeah, I know. The first time you see it is ugly, agree. But if you think further it makes the code protected from unreviewed commits.

In any case, thanks for your report. I expect you didn't waste much time annoyed by that typo. Those "stupid typos/errors" are typically highly time consuming to detect

petersulyok commented 7 months ago

Thanks for the clarification. Will do that next time. Completely forget I just cloned this repo and not forked, that was the issue :)