Skip to content

Commit

Permalink
Merge pull request #100 from ryanmiao/for-upstream-2.0
Browse files Browse the repository at this point in the history
fix error when active resource disk in BSD
  • Loading branch information
yuezh committed Aug 6, 2015
2 parents b94e503 + c8b4cb0 commit 02f6302
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion waagent
Original file line number Diff line number Diff line change
Expand Up @@ -1661,7 +1661,7 @@ __name__='setupmain' #prevent waagent.__main__ from executing
waagent=imp.load_source('waagent','/tmp/waagent')
waagent.LoggerInit('/var/log/waagent.log','/dev/console')
from waagent import RunGetOutput,Run
Config=waagent.ConfigurationProvider()
Config=waagent.ConfigurationProvider(None)
format = Config.get("ResourceDisk.Format")
if format == None or format.lower().startswith("n"):
sys.exit(0)
Expand Down

0 comments on commit 02f6302

Please sign in to comment.