pycloudsigma
pycloudsigma copied to clipboard
Fix set_ssh_keys.py
Please review following changes:
- Fix
get_permission()call to return permission string of given argument path. Also make use ofst_modeattribute which removes need to importstatsmodule to make code shorter and simpler. - Fix permission checking
ifstatement which always returnsFalseasget_permission()call returns permission string and we're checking against octal permission value.
LGTM. @ntassev, can you take a look?
It was merged on https://github.com/cloudsigma/pycloudsigma/pull/17.